Re: Can a match attribute use a non-pattern expression?

Subject: Re: Can a match attribute use a non-pattern expression?
From: Elliotte Rusty Harold <elharo@xxxxxxxxxxxxxxx>
Date: Wed, 5 May 1999 09:32:57 -0400
>Axis Identifiers are a part of location paths...
>
>>From Section 6.1
>
>[3] RelativeLocationPath ::= Step | ...
>
>[4] Step = AxisIdentifier '(' NodeTestPredicate ')' | AbbreviatedStep
>

Yes but relative location paths and steps are not part of patterns. Witness:



 [48] Pattern  ::=              LocationPathPattern
                                | Pattern '|' LocationPathPattern
 [49] LocationPathPattern ::=  '/' RelativePathPattern?
                         | IdKeyPattern (('/' | '//') RelativePathPattern)?
                                | '//'? RelativePathPattern
 [50] IdKeyPattern ::=          'id' '(' Literal ')'
                                | 'key' '(' Literal ',' Literal ')'
 [51] RelativePathPattern ::=   StepPattern
                                | RelativePathPattern '/' StepPattern
                                | RelativePathPattern '//' StepPattern
 [52] StepPattern ::=          AbbreviatedNodeTestStep
 [12]  AbbreviatedNodeTestStep ::=  '@'? NodeTest Predicate*



+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@xxxxxxxxxxxxxxx | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|               Java I/O (O'Reilly & Associates, 1999)               |
|            http://metalab.unc.edu/javafaq/books/javaio/            |
|   http://www.amazon.com/exec/obidos/ISBN=1565924851/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://metalab.unc.edu/javafaq/ |
|  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |
+----------------------------------+---------------------------------+



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread