HTML tags in XSLT

marcus.taylor's Avatar


29 Mar, 2012 08:59 PM

I have a data definition that includes a WYSIWIG description field, and an XSLT style sheet that is formatting the XML from a content type index block. Everything is working as I need it to except all of the HTML tags entered in the WYSIWYG field are getting stripped out.

I've tried two approaches.

This gives me the text from the description node, but the html is stripped out.

This gets me the HTML tags, but all of the encoded characters like curly quotes end up displaying the escape code, instead of the character.

I'm just learning XML/XSL, and inherited this code, so any help I could get would be most appreciated.

  1. 1 Posted by lmwatson on 29 Mar, 2012 09:25 PM

    lmwatson's Avatar

    I am out of the office and will return February 6th.

    Need Web Help?
    Please send requests to our team by emailing us at [email blocked]
    For 24/7 help, see our Web Strategy site at

    Linda Watson, M.B.A., PCM
    Web Technology Manager, Webmaster
    Office of Marketing & Communications

    Rollins College
    1000 Holt Avenue - Box 2729
    Winter Park, FL 32789
    Office: 407.628.6391
    [email blocked]



  2. 2 Posted by Charlie Holder on 29 Mar, 2012 09:37 PM

    Charlie Holder's Avatar


    <xsl:copy-of select="system-data-structure/description/node()"/>

    Let me know if that works.

  3. 3 Posted by marcus.taylor on 30 Mar, 2012 03:12 PM

    marcus.taylor's Avatar

    That seems to produce the same results as the value-of statement I used. All of the text, but none of the html tags.

  4. 4 Posted by marcus.taylor on 30 Mar, 2012 03:15 PM

    marcus.taylor's Avatar

    Scratch that. I updated the wrong format. That does work. Perfect! Now to figure out what the difference is between * and the node().

  5. 5 Posted by Charlie Holder on 30 Mar, 2012 05:26 PM

    Charlie Holder's Avatar

    Glad I could help!

  6. Charlie Holder closed this discussion on 30 Mar, 2012 05:26 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac