RE: [xsl] Is this an XPath Grammar Limitation ?

Subject: RE: [xsl] Is this an XPath Grammar Limitation ?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 6 Feb 2005 15:03:02 -0000
Like many other languages, XPath (both 1.0 and 2.0) enforces data typing
rules through the language semantics rather than through its grammar.
Grammatically there are many expressions you can write that will fail the
data type restrictions. This is much more true in 2.0, but there are
examples in 1.0 also. Here are some expressions that the 1.0 syntax allows
but the data typing rules prohibit:




4 | 5

Michael Kay 

> -----Original Message-----
> From: Ramkumar Menon [mailto:ramkumar.menon@xxxxxxxxx] 
> Sent: 06 February 2005 06:57
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Is this an XPath Grammar Limitation ?
> Hi All,
> XPath allows relative location paths following the FilterExpr. The
> FilterExpr can be a PrimaryExpr that can further be a number/Literal
> as well. So an XPath that contains a number followed by a relative
> location path is valid as per XPath 1.0 grammar. Am I missing
> sometihng here, or did the folks wanted to keep it loose enough.
> -Menon
> --
> Shift to the left, shift to the right!
> Pop up, push down, byte, byte, byte!
> -Ramkumar Menon
> A typical Macroprocessor

Current Thread