Copied to clipboard

Flag this post as spam?

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


  • Lotus 22 posts 20 karma points
    Apr 09, 2009 @ 12:46
    Lotus
    0

    HTML characters in XSLT script

    Is it possible o to add HTML characters into an XSLT

    I need this symbol (its double-right arrow):
    [code]»[/code]
    Tried doing it like this but it doesnt work:
    [code]



    [/code]

  • Lotus 22 posts 20 karma points
    Apr 09, 2009 @ 12:55
    Lotus
    0

    works if you got the right syntax :-"

    [code]»[/code]

    Even without the

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Apr 15, 2009 @ 00:18
    Lee Kelleher
    0

    or you can wrap it up in CDATA?

    [code][/code]

    It's extra mark-up, but you get the exact output you want, (without having to look up HTML entity codes).

  • David Conlisk 432 posts 1008 karma points
    Apr 15, 2009 @ 11:00
    David Conlisk
    0

    Or alternatively take a look at Doug's post Anatomy of an Umbraco xslt file - he details how you could add a list of "entities" like this to the second line of your xslt file to achieve what you're trying:

    [quote]
    ]>
    [/quote]

    Cheers,

    David

Please Sign in or register to post replies

Write your reply to:

Draft