Copied to clipboard

Flag this post as spam?

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


  • Timsn 121 posts 231 karma points
    May 18, 2009 @ 12:54
    Timsn
    0

    XSLT div tag output

    When I try to nest something into a div tag, the div tag is getting closed immediately.
    Some code explains it better:

    [code]

    [/code]

    The output is something like that:
    [code]



    [/code]

    But shouldn't be the image in the div tag?!

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    May 18, 2009 @ 14:23
    Douglas Robar
    0

    Very strange, but perhaps there is more going on than is immediately obvious from what you've posted. For instance, in a named template one would typically pass in a parameter. Where is your @ContactImage coming from? Should it really be a variable, $ContactImage?

    If you move the content of your named template into the main "/" template, do you get proper output? In other words, what does this generate for output?

    [code]



    ...
    [/code]

    cheers,
    doug.

  • Timsn 121 posts 231 karma points
    May 18, 2009 @ 14:50
    Timsn
    0

    Seems to be my fault. In one case the image attribute was empty so the rendered output was
    [code]

    [/code]
    and the Internet Explorer doesn't like selfclosing div-tags and broke my page.

    Thank you anyway. Problem solved ](*,)

  • Daniel Lindstrom 454 posts 271 karma points
    May 18, 2009 @ 14:51
    Daniel Lindstrom
    1

    [quote=Rodriguez]Seems to be my fault. In one case the image attribute was empty so the rendered output was
    [code]

    [/code]
    and the Internet Explorer doesn't like selfclosing div-tags and broke my page.

    Thank you anyway. Problem solved ](*,) [/quote]

    You can change the xslt output to html instead of xml to avoid the problem with self closing tags.

Please Sign in or register to post replies

Write your reply to:

Draft