Copied to clipboard

Flag this post as spam?

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


  • Ryan Farghil 9 posts 29 karma points
    Jun 03, 2011 @ 19:09
    Ryan Farghil
    0

    Perplexed by umbraco.library calls

    sHello all, here's a snippet of xslt that seems to disobey the laws of physics...

    1    <xsl:value-of select="@createDate"/><br/>
    2    <xsl:value-of select="umbraco.library:LongDate('2011-06-03T10:30:46')"/><br/>
    3    <xsl:value-of select="umbraco.library:LongDate('@createDate')"/><br/>

    Line 1 works ... the create date is rendered from the @createDate property.

    Line 2 works ... the static text date is rendered and formatted.

    Line 3 fails ... nothing is rendered.  Huh?

    All advice appreciated.  Cheers,

    -R

  • Eran Meir 401 posts 543 karma points
    Jun 03, 2011 @ 19:23
    Eran Meir
    1

    should be

     <xsl:value-of select="umbraco.library:LongDate(@createDate)"/><br/>

  • Ryan Farghil 9 posts 29 karma points
    Jun 03, 2011 @ 19:30
    Ryan Farghil
    0

    Thanks Eran!  We copied the source from an online video but apparently missed that.  Appreciate your help,

    -R

Please Sign in or register to post replies

Write your reply to:

Draft