Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jan Molbech 31 posts 76 karma points
    Jan 20, 2012 @ 11:06
    Jan Molbech
    0

    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".

  • Rodion Novoselov 694 posts 859 karma points
    Jan 20, 2012 @ 11:17
    Rodion Novoselov
    0

    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'"?

  • Jan Molbech 31 posts 76 karma points
    Jan 20, 2012 @ 11:25
    Jan Molbech
    0

    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.

  • Fuji Kusaka 2203 posts 4220 karma points
    Jan 20, 2012 @ 11:26
    Fuji Kusaka
    0

    Hi Jan,

    Can you give us some more explanations on what you are trying to achieve?

     

    //fuji

  • Rodion Novoselov 694 posts 859 karma points
    Jan 20, 2012 @ 11:30
    Rodion Novoselov
    0

    You just need to write select="'paragraphs'" (quote + apostrophe + paragraphs + apostrophe + quote).
    (In XPath/Xslt string literals are denoted by the pair of apos)

  • Rodion Novoselov 694 posts 859 karma points
    Jan 20, 2012 @ 11:36
    Rodion Novoselov
    0

    I would highly reccomend this resource if you want to quickly and easy get in terms with this stuff:

    http://www.w3schools.com/

  • Gordon Saxby 1461 posts 1883 karma points
    Jan 20, 2012 @ 11:42
    Gordon Saxby
    0

    These guys seem to dislike w3schools - http://w3fools.com/ !

Please Sign in or register to post replies

Write your reply to:

Draft