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