Subject: RE: [xsl] mixture of XML and HTML in result From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx> Date: Thu, 8 Jan 2004 15:24:13 -0000 |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] mixture of XML and HTML i, David Carlisle | Thread | RE: [xsl] mixture of XML and HTML i, Larry_Mason |
[xsl] mixture of XML and HTML in re, Larry_Mason | Date | Re: [xsl] Testing for Missing or Em, David Carlisle |
Month |