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

RE: Output character references for all but one charac

Subject: RE: Output character references for all but one character
From: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx>
Date: Tue, 22 Jun 2004 09:49:14 +0100
character reference requirements

> > I have the problem where I need characters outside the ascii
> > range to be output as references, apart from the pound sign, 
> > which must remain as the actual character.
> 
> I don't understand. You want the output to be ASCII, but you 
> want the # sign output as a hex A3 byte? Those are surely 
> contradictory requirements.

Long story, I doubt there's a solution (as it's a daft requirement) but here are the requirements, maybe xslt 2.0 can help me out here:

This xml:

<node value="£">Hello&#160;World</node>

Once transformed, looks the same:

<node value="£">Hello&#160;World</node>

That is, the non-breaking-space appears as a character reference, and the pound sign appears as the actual character.

I've tried various combinations of output encodings, d-o-e and character maps, but I haven't be able to do it so far.  How would character maps replace d-o-e on attributes here?  Maybe a 'force-output-escaping' would be useful, as it does come up on the list now and again where the answer is to specify an encoding that doesn't contain the character you need in order to force the serialiser to escape it?

cheers
andrew


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.