|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: node() problem
Steve,
The "empty" node is in your source. It's undoubtedly a whitespace-only text node, which you may be deleting in your post to us, since you only see a line feed or something as apparently innocuous. Notice your template matches text nodes by virtue of matching "node()". If you don't want text nodes to be processed by the template, don't match them, or if you do but want to skip whitespace-only text nodes, find another way to remove them such as xsl:strip-space. Actually, XMLSpy is the one with the bug here: MSXML, which XMLSpy uses, strips these nodes by default before the XSLT engine sees the document, contrary to indications in the XSLT spec that suggest this job should be done by the XSLT processor. (By a strict reading of what constitutes legal input to the process they aren't *quite* non-conformant in this, but you can think of it as a bug anyhow. :-) The other engines are doing the right thing. match="@*|*" will fix the problem. Cheers, Wendell At 12:00 PM 7/4/2003, you wrote: Hi all,
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








