Copied to clipboard

Flag this post as spam?

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


  • Michael Sims 119 posts 387 karma points
    Dec 05, 2013 @ 14:01
    Michael Sims
    0

    Conditional Select

    Hello,

    I am trying to recursively find a property that is populated. Using the below I can get a true or false back but I don't seem to be able to get back the actually value. Can someone help please?

     

    <xsl:variable name="config2" select="$currentPage/ancestor-or-self::*[@isDoc]/twitter !=''" />

  • Mads Jørgensen 74 posts 226 karma points
    Dec 05, 2013 @ 14:03
    Mads Jørgensen
    1

    Hey try:

    <xsl:variable name="config2" select="$currentPage/ancestor-or-self::*[@isDoc][normalize-space(twitter)]/twitter" />
    
  • Kim Nedergaard 37 posts 144 karma points
    Dec 06, 2013 @ 08:11
    Kim Nedergaard
    0

    or maybe:

    <xsl:variable name="config2" select="$currentPage/ancestor-or-self::*[@isDoc and twitter != '']/twitter" />
    
Please Sign in or register to post replies

Write your reply to:

Draft