Copied to clipboard

Flag this post as spam?

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


  • Peng 41 posts 62 karma points
    Jul 02, 2010 @ 07:08
    Peng
    0

    How to check some Document Type Alias 's value?

    Hi guys,

    Try to find out how to check some Document Type Alias's value in new schema

    Eg: old syntax

    <xsl:for-each select="$currentPage/ancestor-or-self::node [@level=$level]/node [string(data [@alias='NaviShow']) = 'MenuTop']">

    I tried this way but it did not work

    <

     

     

    xsl:for-each select="String($currentPage/ancestor-or-self::*[@level = $level]/*[name()='NaviShow'])= 'MenuTop'">

    Thanks in advance,

    Peng

  • Gerty Engrie 130 posts 490 karma points c-trib
    Jul 02, 2010 @ 07:13
    Gerty Engrie
    0

    Hi Peng,

    not sure but try this way:

     <xsl:for-each select="$currentPage/ancestor-or-self::*[@level = $level]/NaviShow/*[name()='MenuTop']">
  • Peng 41 posts 62 karma points
    Jul 02, 2010 @ 07:33
    Peng
    0

    Sorry, Gerty. It did not work for me.

  • Peng 41 posts 62 karma points
    Jul 02, 2010 @ 08:25
    Peng
    0

    Found this way working for me:

    <

     

     

    xsl:for-each select="$currentPage/ancestor-or-self:: *[@level=$level]/ *[@isDoc and string(*[name()='NaviShow']) = 'MenuTop']">

     

Please Sign in or register to post replies

Write your reply to:

Draft