Bharadwaj, Anand (ELS-OXF) wrote:
Hi,
Thanks for the update.
When we run the below Xpath query on an another application (XMLSpy),
it ignores the first node (containing white spaces)
and returns the count as 4.
The Microsoft XSLT processor strips all whitespace text nodes from the
source tree
and not as part of
implementation of neither of XML nor XPath specifications.
Thanks and Regards,
Anand
-Original Message-
From: David Bertoni [mailto:[EMAIL PROTECTED]
Sent: 10 July 2007 18:01
To: xalan-c-users@xml.apache.org
Subject: Re: Ignoring the whitespace in text nodes
Bharadwaj
First, look at the whitespace stripping options in section 3.4 of the XSLT
spec. If that doesn't get what you want, you can apply a predicate to
deselect some nodes when you count them. Perhaps
count(blah/node()[normalize-space()!=' '])
will obtain what you want.
.David Marston
Bharadwaj, Anand (ELS-OXF) wrote:
Hi All,
We are having an issue with XSLT parser sample (SimpleXPathAPI.exe).
It's an XPath _processor_, not an XPath _parser_.
When the XPath query (count(/*[1]/*[7]/*[5]/*[1]/*[3]/*[2]/node()))is
made on the document containing the XML node snippet:
"