Copied to clipboard

Flag this post as spam?

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


  • Mikael Mørup 297 posts 326 karma points
    Jan 19, 2009 @ 11:58
    Mikael Mørup
    0

    "bool" macro parameter in XSLT

    I have a macro with a parameter of type "bool" ( = check box).

    I have problems getting the value in my XSLT file behind the macro.

    The parameter is named alignLeft (i have checked and double checked spelling)

    I have tried:

  • Scott Hugh Alexandar Petersen 349 posts 164 karma points
    Jan 19, 2009 @ 12:18
    Scott Hugh Alexandar Petersen
    0

    Hey Mikael

    The correct way is this



    Are you sure that you published the page afterwards?

  • Mikael Mørup 297 posts 326 karma points
    Jan 19, 2009 @ 14:16
    Mikael Mørup
    0

    if i try this :







    The last test is allways true, both when the checkbox is checked and when it is unchecked ?

    is there something i should use to qualify alignLeft with ? like you use /text() with text box fields ?

    Mikael

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Jan 19, 2009 @ 14:21
    Dirk De Grave
    0

    Hi,

    How's the parameter defined? Are you sure you're using the correct syntax as xml is case sensitive! Are you using the alias?

    Regards,
    /Dirk

  • Mikael Mørup 297 posts 326 karma points
    Jan 19, 2009 @ 14:37
    Mikael Mørup
    0

    I fixed the problem by renaming the macro parameteres alias fro alignLeft to alignleft and now it works.

    I had the same problem with a parameter named pictureText recently.

    It seem that macro parameter aliases can not be mixed case - for some odd reason.

    Is this documented or is it a bug ?

    Thanks

    Mikael

  • 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