Copied to clipboard

Flag this post as spam?

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


  • Martin 26 posts 21 karma points
    Mar 27, 2009 @ 12:25
    Martin
    0

    what's wrong here? (XSLT vs. Usercontrol menu)

    I've got this standard xhtml menu. Everything is made in divs, and styled with CSS 2.0. I only style on classes, so I know that's not the problem.

    when I put the source (plain xhtml) into a usercontrol, and load the macro , the menu looks fine. But when I put the exact same source into an XSLT and load that macro instead, something goes wrong, and I have absolutely no clue why ...
    Since I want to build the menu in XSLT rather than using a usercontrol for the purpos, I need some kind of fix for it ...

    http://img168.imageshack.us/img168/8536/usercontrolmenu.jpg

    The above one is the usercontrol...

    This is what happens when I put the same sourcekode into an xslt ....
    http://img168.imageshack.us/img168/4172/xslt.jpg

    Any ideas??


    Regards,
    Martin

  • Martin 26 posts 21 karma points
    Mar 27, 2009 @ 12:28
    Martin
    0

    Example of drawing one menu "tab".

    [code]




    [/code]

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Mar 27, 2009 @ 12:35
    Peter Dijksterhuis
    0

    Set the output of the xslt-file to html instead of xml. That probably solves your problem.

    HTH,
    PeterD

  • Martin 26 posts 21 karma points
    Mar 27, 2009 @ 14:10
    Martin
    0

    Arh :D
    It worked!!!

    Thanks! :D

Please Sign in or register to post replies

Write your reply to:

Draft