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

How to preserve numerical representation of chars when

Subject: How to preserve numerical representation of chars when parsing?
From: Thomas Brand <brand@xxxxxxxxx>
Date: Thu, 05 Sep 2002 16:40:40 +0200
thomas brand

Hello dear xslt-lover/ xslt-developer,


I have a problem that seems to be not that easy to solve.

In my xml instance doc, several characters are coded as numerical representations, i.e.:

&#171; = << &laquo;
&#187; = >> &raquo;
&#038; = &  &amp;
&#034; = "  &quot;
&#039; = ´  &Apostroph;
&#060; = <  &lt;
&#062; = >  &gt;
&#035; = #  (Hash);

The instance doc must be transformed with a stylesheet to a new doc.

Now here comes the difficulty: the customer wants all numerical representations to be preserved in the resulting doc.

As far as i know, a xml parser expands all references by default to it's corresponding characters when first loading a doc.

Is there any possibility to let the numerical references pass transparently?
If not, what would be a good solution?

Any hints are appreciated
 Thomas Brand


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.