Copied to clipboard

Flag this post as spam?

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


  • synsat 30 posts 43 karma points
    Jul 06, 2009 @ 08:18
    synsat
    0

    GetXmlNodeById() does not return root after patch upgrade

    Hi All,

    After upgrading from 4.0.0 to 4.0.2, the xslt shown below does not any longer return all children nodes of root. If I change "-1" to e.g. "1254" which is an existing node id, it works fine, but "-1" will not return anything. Does anyone know why this would happen after the patch upgrade?

    <xsl:for-each select="umbraco.library:GetXmlNodeById(-1)/descendant::node [@nodeTypeAlias != 'Folder']">

    thanks in advance,
    synsat

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Jul 06, 2009 @ 09:00
    Dirk De Grave
    0

    Hi synsat, 

    Does it work when using:

    <xsl:for-each select="umbraco.library:GetXmlAll()/descendant::node [@nodeTypeAlias = 'Folder']">

     

    Cheers,

    Dirk

  • synsat 30 posts 43 karma points
    Jul 06, 2009 @ 09:40
    synsat
    0

    Thanks Dirk,

    Yes, that works, and I actually tried that yesterday, but was not sure that the output is the same, is it? Does not GetXmlAll() return "all" xml elements?

    Any clue why GetXmlNodebyId(str) would not work anymore?

    Regards

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

Please Sign in or register to post replies