Re: [xsl] nbsp fails transformation

Subject: Re: [xsl] nbsp fails transformation
From: Jesper Tverskov <jesper.tverskov@xxxxxxxxx>
Date: Wed, 10 Aug 2011 09:01:58 +0200
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