|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XPath Grammar
> I need help about XPath grammar.
> In W3C specification a literal is stated as the
> following:
>
> [29] Literal ::= '"' [^"]* '"'
> | "'" [^']* "'"
>
XPath uses the strange convention of mixing BNF and regular expressions
in a single production rule.
A more conventional approach would be either to write this in BNF (using
the "-" operator to mean "except") as
> [29] Literal ::= '"' (Char - '"')* '"'
> | "'" (Char - "'")* "'"
or to do the whole thing as a regular expression:
Literal ::= ("[^"]*"|'[^']*')
Michael Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








