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

Re: ignoring   when transforming xml to wml

Subject: Re: ignoring   when transforming xml to wml
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 26 Feb 2004 00:18:34 GMT
wml nbsp
You can't get a stylesheet to ignore nbsp because you can't get it to
see it.

If  you have an XML file that has & nbsp; but does not have a <!DOCTYPE
pointing at a DTD that defines this entity, then the file is not well
fomrned XML, ie it isn't XML at all and will generate a fatal error on
any XML system, and on any attempt to transform with XSLT in particular.

If the source file does have a dtd that defines nbsp the XSLT will not
see the nbsp entity reference, it will see the character refetenced
(which is character 160 if nbsp is defined with its usual definition).

It sounds like you are in the first case.
You need to fix your input to make it well formed XML by adding a DTD
that defines nbsp or more simply just use & #160; instead of & nbsp;.

David

-- 
http://www.dcarlisle.demon.co.uk/matthew

 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.