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 1606 posts 4098 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 1606 posts 4098 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 4006 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 1606 posts 4098 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.

  • 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