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

Re: ampersand in data

Subject: Re: ampersand in data
From: Mike Brown <mike@xxxxxxxx>
Date: Fri, 21 Jul 2000 14:01:28 -0700 (PDT)
xml well formed ampersand
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 &amp; Jill</Name>
<Name>Jack &#38; Jill</Name>
<Name>Jack &#x22; 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


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.