Copied to clipboard

Flag this post as spam?

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


  • Profiterole 232 posts 264 karma points
    Aug 22, 2011 @ 18:43
    Profiterole
    0

    old to new schema

    Hi guys, I used to old schema and I'm switching to new one. I have trouble with this line :

    <xsl:for-each select="umbraco.library:GetXmlNodeById($parentNode)/ancestor-or-self::node[@level=1]//node [@nodeTypeAlias=$documentTypeAlias]">

    Can you help me convert that to new schema?

    Thank you

  • Profiterole 232 posts 264 karma points
    Aug 22, 2011 @ 18:56
    Profiterole
    0

    It's the variable nodeTypeAlias that seems not to work :

    <xsl:for-each 
    select="umbraco.library:GetXmlNodeById($parentNode)/ancestor-or-self::*[@level=1]//($documentTypeAlias)">
  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Aug 22, 2011 @ 19:39
    Jan Skovgaard
    0

    Hi profiterole

    That's probably because the @NodeTypeAlias is no more :-)

    This wiki entry about shows some good examples on how to match the nodetype with the new schema now: http://our.umbraco.org/wiki/reference/xslt/45-xml-schema/no-more-@nodetypealias

    Hope this helps.

    /Jan

  • Profiterole 232 posts 264 karma points
    Aug 22, 2011 @ 19:48
    Profiterole
    1

    Thank Jan... but I figured it myself!! Not to complicated after all!

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Aug 22, 2011 @ 19:49
    Jan Skovgaard
    0

    Glad you figured it out :-)

    /Jan

  • 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