[xsl] XPath 1.0 issue

Subject: [xsl] XPath 1.0 issue
From: Jack Matheson <jack@xxxxxxxxxxxxxx>
Date: Tue, 15 Feb 2005 07:55:20 -0600
Xalan and Saxon both allow an arbitrary number of space characters between the parenthesis in a node test, and I was
wondering if this is technically legal in XPath 1.0.


An example would be:
<xsl:apply-templates select="node(      )"/>

The XPath TR specifically states that whitespace can exist between tokens, but I'm not exactly sure how "token" is defined after reading the recent thread concerning "$ varname".

A node test in the XPath TR is defined as:

[7] NodeTest ::= NameTest
| NodeType '(' ')'
| 'processing-instruction' '(' Literal ')'


Can anyone explain this to me?

Current Thread