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

RE: good enough XSLT processor

Subject: RE: good enough XSLT processor
From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx>
Date: Wed, 25 Feb 2004 09:20:00 -0000
perl sablotron
> Until now I used Sablotron via Perl to do our XSLT 
> processing, but we found 
> out that it doesn't handle html entities like $frac12; to xml 
> entities when 
> using utf8. We have been using Perl to translate these back 
> to xml entities, 
> but only those that occured. So now we are frequently bugged 
> by new entities 
> breaking the process when they are introduced.

I don't think it's your processor, it's your process :)

$fract12; should lead with an &, but I guess that's a typo.

Im not sure what you mean by 'xml entities', so you might need to
clarify there.

However, the usual answer here is to specifiy an output encoding that
doesn't support the character that you are trying to output, thereby
forcing the serialiser to output a reference instead.  

So, if you specified output encoding="ascii" in your stylesheet the
'vulgar fraction one half' should be output as the reference &#189;

cheers
andrew

 

 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.