Copied to clipboard

Flag this post as spam?

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


  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Aug 19, 2010 @ 21:05
    Kalle Ekstrand
    0

    How Use XSLT to Test For Multiple Values?

    Hello,

    I want to test multiple values in XSLT. Why is this not possible?

    <xsl:if test="$currentPage/data [@alias='bodyImage1'] != '' AND $currentPage/data [@alias='bodyImage2'] != ''">

    //Kalle

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Aug 19, 2010 @ 21:20
    Stefan Kip
    0

    What do you mean, not possible?

    You get an error?

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Aug 19, 2010 @ 21:22
    Kalle Ekstrand
    0

    Yes, I get Error reading XSLT file.

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Aug 19, 2010 @ 21:23
    Stefan Kip
    0

    I can't imagine the error is in the specific line... Are you sure?

  • Rich Green 2246 posts 4008 karma points
    Aug 19, 2010 @ 21:27
    Rich Green
    1

    Try a lower case 'and' .

    Rich

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Aug 19, 2010 @ 21:27
    Kalle Ekstrand
    0

    Yes. 100% sure. If I remove second testing its ok...

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Aug 19, 2010 @ 21:31
    Kalle Ekstrand
    0

    Incredible! lowercase did it! Why did I not try that! Thanks Rich.

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Aug 19, 2010 @ 21:32
    Stefan Kip
    0

    zOMG

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Aug 20, 2010 @ 11:45
    Kalle Ekstrand
    0

    Absolutely increddible!

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Aug 20, 2010 @ 19:47
    Kalle Ekstrand
    0

    I did not know that XSLT was case sensitive, especially important in your XPATH statements.

Please Sign in or register to post replies

Write your reply to:

Draft