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

Re: Switching off character entity resolution in XSL

Subject: Re: Switching off character entity resolution in XSL
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 4 Feb 2004 10:13:36 GMT
what is the character
  I realise there is some way of dealing with this with character
  substitutions before or after using something like sed, but this isn't
  really a great solution,

Great or not, it's what we all do:-)
sed -e "s/&/[[[AMP]]]/g" file.xml > tmp.xml
saxon -o tmp2.xml tmp.xml style.xsl
sed -e "s/[[AMP]]/&/g" tmp2.xml > result.xml

XSLT2 provides a character map functionality which allows characters to
be rewritten back as entity references or anything else.

For XSLT1 a system is _allowed_ to do that but probably won't unless it
has some mechanism of supplying a non standard serialiser. Many of the
java ones do have such an facility I think.

David

-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 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.