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

AW: nbsp fails transformation

Subject: AW: nbsp fails transformation
From: "Szabo, Patrick \(LNG-VIE\)" <patrick.szabo@xxxxxxxxxxxxx>
Date: Wed, 10 Aug 2011 09:03:10 +0200
AW:  nbsp fails transformation
Thanks, that helps !


. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
 XSLT Developer
LexisNexis
Marxergasse 25, 1030 Wien

mailto:patrick.szabo@xxxxxxxxxxxxx
Tel.: 00431 534521573
Fax: +43 (1) 534 52 - 146


-----UrsprC<ngliche Nachricht-----

Von: Jesper Tverskov [mailto:jesper.tverskov@xxxxxxxxx]
Gesendet: Mittwoch, 10. August 2011 09:02
An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Betreff: Re:  nbsp fails transformation

An XML file containing &nbsp; is not well-formed, that is not XML,
unless there is a DOCTYPE defining that named entity.

If you need to transform such a file with XSLT 2.0 you must first load
it as text with the unparsed-text() function and replace &nbsp; with
&#160; or &#xA0; using Regular Expressions.

Unless you are allowed to edit the XML file and make an internal DTD
subset defining the named entity.

Cheers
Jesper Tverskov

http://www.xmlkurser.dk
http://www.xmlplease.com

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.