Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a small question.
When you set the documenttype
<xsl:variable name="documentTypeAlias" select="string('weblogItem')"/>
What syntax do you use if i want a documenttype called "paragraphs".
For brevity's sake you don't have to use string() since apostrophes already imply the string datatype.
What do you mean by "to want a documenttype called 'paragraphs'"?
Well the code is taken directly from the standard template so i didn't put the string() there.
I want to give the variable documentTypeAlias the value of paragraphs.
I have tried to write select="paragraphs" but that has no effect.
Hi Jan,
Can you give us some more explanations on what you are trying to achieve?
//fuji
You just need to write select="'paragraphs'" (quote + apostrophe + paragraphs + apostrophe + quote). (In XPath/Xslt string literals are denoted by the pair of apos)
I would highly reccomend this resource if you want to quickly and easy get in terms with this stuff:
http://www.w3schools.com/
These guys seem to dislike w3schools - http://w3fools.com/ !
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Using "list sub pages by document type" template
I have a small question.
When you set the documenttype
<xsl:variable name="documentTypeAlias" select="string('weblogItem')"/>
What syntax do you use if i want a documenttype called "paragraphs".
For brevity's sake you don't have to use string() since apostrophes already imply the string datatype.
What do you mean by "to want a documenttype called 'paragraphs'"?
Well the code is taken directly from the standard template so i didn't put the string() there.
I want to give the variable documentTypeAlias the value of paragraphs.
I have tried to write select="paragraphs" but that has no effect.
Hi Jan,
Can you give us some more explanations on what you are trying to achieve?
//fuji
You just need to write select="'paragraphs'" (quote + apostrophe + paragraphs + apostrophe + quote).
(In XPath/Xslt string literals are denoted by the pair of apos)
I would highly reccomend this resource if you want to quickly and easy get in terms with this stuff:
http://www.w3schools.com/
These guys seem to dislike w3schools - http://w3fools.com/ !
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.