|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: mixture of XML and HTML in result
> Except when the output mode is xml, you don't get   as a > string of 6 characters in the output. Instead the unicode > value is emitted and the IE browser does NOT render a > non-breaking space (at least for me). That is why I'm trying > to litterally get the 6 character string. Larry Its probable that IE is trying to view the output in the wrong encoding, if you tell it to use utf-8 you should see your non-breaking spaces: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" encoding="utf-8"/> <xsl:template match="/"> Tree here<br/>  grandparent<br/>   parent<br/>    child<br/> </xsl:template> </xsl:stylesheet> If you really want the character reference carried through to the output as a character reference, specify an encoding that doesn't contain the character, forcing the serializer to output a reference. So in the example above, change the encoding to 'ascii'. cheers andrew 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
|

Cart








