|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: ampersand in data
John Gethoefer wrote:
> I am trying to transform XML data such as follows:
>
> <Name>Jack & Jill</Name>
That's not XML, because it's not well-formed.
Any of these are XML:
<Name>Jack & Jill</Name>
<Name>Jack & Jill</Name>
<Name>Jack " Jill</Name>
<Name><![CDATA[Jack & Jill]]></Name>
If you don't make your XML well-formed, it will never get past
the parser, which is what tells the XSLT parser what logical
structures (elements, attributes, etc) are in the document.
The parser requires well-formed XML, because otherwise how is
it supposed to know when your markup characters ("&" "<" ">"
and sometimes "'" """) are really just ordinary character data?
-Mike
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








