RE: Is this an XPath Grammar Limitation ?
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: 1/fred fred/1 count(3) 4 | 5 Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: Ramkumar Menon [mailto:ramkumar.menon@xxxxxxxxx] > Sent: 06 February 2005 06:57 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: 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
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