[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: ignoring when transforming xml to wml
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|