|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: mixture of XML and HTML in result
> I need to build a page containing both html and xml. In > order for the proper xml to be built, I must use the xsl > output of xml. However, I also need non-breaking spaces > within the html sections. What I can't determine is how to > litterally emit   in the result. > <xsl:text> </xsl:text> works fine only when the output > method is html. Thoughts? Larry Just use   in your stylesheet - although you can't see the 6 characters '& # 1 6 0 ;' in your output, the character that the character reference references :) is still there. HTML doesn't normalize this kind of white space, so its ok. For example, try: <xsl:template match="/"> Tree here<br/>  grandparent<br/>   parent<br/>    child<br/> </xsl:template> You will see that the text is indented as you intended. 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








