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

Re: Disable output-escaping

Subject: Re: Disable output-escaping
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 27 Jan 2005 11:22:56 GMT
escaping characters map
   >>>>> "Colin" == Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx> writes:

       Colin> or equivalently, add a use-character-maps attribute to
       Colin> xsl:value and xsl:text.

   Well, not, it's no quite equivalent, as you can't defining a mapping
   for ASCII NUL to ASCII NUL (for instance) using character maps, as it
   won't pass the XML parser.
   -- 
   Colin Paul Adams
   Preston Lancashire

well you can't use d-o-e with nulls either as you can't get them into
the data model at all, so the above, while true doesn't really affect
equivalence. 

But I'm not sure how you would see a u-c-m attribute on xsl:value and
xsl:text working. a character map already applies to all text in the
result tree including any text generated by these. The whole reason why
character maps are less intrusive than d-o-e is that they apply to the
whole tree so don't need magic properties on individual characters.

Or perhaps you mean that the u-c-m would not be applied at serialisation
time but actually affect the string value of the node generated (ie be
equivalent to using replace() to make all the replacements implied by
the character map, I could have used that. In an application I'm
currently building I have more or less stopped using character maps
and reverted to using template matching as in the rcursive replacement
that Im doing I need the later templates to "see" the new swtrings, know
how long they are, etc, and for that I need to do teh replecements
explictly in xslt not just let the xslt see an identity transfom and
replace teh charcters in a character map at serialisation time.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. 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
________________________________________________________________________

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.