Copied to clipboard

Flag this post as spam?

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


  • Wayne 19 posts 59 karma points
    Nov 08, 2010 @ 01:54
    Wayne
    0

    GetXmlNodeById does not show any children

    I have the following code but it is not displaying any children even though i can see the child nodes in the xml

     

    <xsl:for-each select="umbraco.library:GetXmlNodeById(1263)/* [@isDoc]">

          <xsl:value-of select="./link"/>
          <xsl:value-of select="./title"/>
          <xsl:value-of select="./image"/>
          <xsl:value-of select="@nodeName"/>
          <a href="{./data/link}">
             <xsl:variable name="media" select="umbraco.library:GetMedia(data[@alias='image'], 'false')/data" />
                    <img src="{$media/umbracoFile}" alt="{$media/title}" />
            </a>
    </xsl:for-each>

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Nov 08, 2010 @ 08:18
    Lee Kelleher
    0

    Hi Wayne,

    Are you using the new XML schema (default from v4.5) or the legacy schema? As you have a mish-mash of old & new.

    You could try dumping out the XML to see what you are getting back?

    <xmp>
        <xsl:copy-of select="umbraco.library:GetXmlNodeById(1263)" />
    </xmp>

    Cheers, Lee.

Please Sign in or register to post replies

Write your reply to:

Draft