[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Is this an XPath Grammar Limitation ?

Subject: RE: Is this an XPath Grammar Limitation ?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 6 Feb 2005 15:03:02 -0000
xpath grammar
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.