[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Novice Question - matching entire text children
In principle, an element node is not allowed to have two adjacent text
node children, so unless there are comments or processing instructions
breaking up the text, it should be delivered as a single node.
However, DOM does allow adjacent text nodes, and some processors work on a DOM tree as input, and I suspect some processors do not always amalgamate adjacent text nodes as they should. In any case, it's a good idea to make sure that your code still works if someone puts a comment in the middle of the text, so it's best not to assume that all the text of an element is in a single node. Usually the best way of doing that (unless you are dealing with mixed content) is to use the string-value of the element node, rather than its text node children. Michael Kay Saxonica On 20/12/2010 13:09, David Lee wrote: XSLT 2.0 I have a problem (probably my own misuse of XSLT) but I run into cases where
|
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
|