RE: Question about xsl, xml,javascript

Subject: RE: Question about xsl, xml,javascript
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 29 Nov 1999 18:14:46 -0000
> which means that it has `mixed content' ie some characters as well as
> elements are children of xsl:template. If you do that then -all_
> characters including white space, become significant. 

Not quite true; whitespace is significant if it appears in a text node that
also includes non-whitespace, but it is insignificant otherwise. Whether the
owning element has mixed content is immaterial.

So:

<p>
Which of the following cities is the capital of USA?
</p>

Outputs a new line before and after the text, while

<p>
<!--c-->Which of the following cities is the capital of USA?<!--c-->
</p>

doesn't.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread