[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: how do you get non-xhtml data through the XSL processor?

Subject: Re: how do you get non-xhtml data through the XSL processor?
From: Mike Brown <mike@xxxxxxxx>
Date: Thu, 16 Mar 2000 18:13:38 -0700 (MST)
xhtml data
> In my XML source document I have will non-xhtml formatted html inside
> CDATA tags [...]  but now when I do this:
> 
> <xsl:value-of select="wildcard"/>
> 
> the output has all of the angle brackets/chevrons, whatever you want to
> call them in the HTML, formatted as entity chars like:
> &lt; &gt;

You can't pretend that some block of HTML is only marked-up, structured
data some of the time. When you put it in an XML document, it either is
marked-up, structured data, and thus must be well-formed, or it's purely
character data.

If it's character data, you can't say you want to pretend it's markup when
it's serialized, because then you'll end up with something that most
likely will not be well-formed and cannot consistently be reintepreted as
structured data.

If you don't care, and if your XSLT processor supports it, you might try
<xsl:value-of select="wildcard" disable-output-escaping="yes"/> ... but in
general you should not be trying to store non-XML markup in an XML
document.

   - Mike
___________________________________________________________
Mike J. Brown, software engineer, Webb Interactive Services
XML/XSL stuff: http://www.skew.org/    http://www.webb.net/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.