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

RE: Is there a way to output & apos ; instead of & # 3

Subject: RE: Is there a way to output & apos ; instead of & # 34 ; in XML?
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 14 Mar 2001 10:26:59 -0000
instead of
> But if the input has
> &apos;
> or
> "
> , the output changes them to
> '
> and
> "
> , which is not good. I'd like to preserve what was in the
> input.

No, there's no way to preserve what's in the input, when the two
representations are equivalent in the XPath data model. Just as you can't
preserve the spaces around an equals sign in attribute="value". Since all
XML applications shold treat the two as equivalent, the theory is that these
cosmetic variations do not need to be preserved.

Saxon gives you some control over the representation of non-ASCII characters
in the output (see the saxon:character-representation attribute) but that
won't help you in this case. You can always write your own serializer, but
even that won't tell you what the input representation was.

Mike Kay
Software AG



 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.