[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
an xsl/xpath question re attribute qualifiers
- From: james anderson <email@example.com>
- To: firstname.lastname@example.org
- Date: Thu, 08 Mar 2001 03:53:00 +0100
I am trying to reconcile the XPath location expressions with the
patterns described for XSL and the forms described for XPointer. I had
thought that they were related.
1. Are the respective BNF descriptions available in a concise form? In
forms which share the same terms?
2. Is there any document which literally unifies them?
2a. For example, I am wondering how something like the id and key
anchors from the xslt description best fit into the xpath grammar.
Something like the following looks ok, but seems a bit ad hoc. Is there
any definitive source on matters of reconciliation?
AbsoluteLocationPath ::= (SingleSlash RelativeLocationPath? )
| (Anchor SingleSlash RelativeLocationPath? )
RelativeLocationPath ::= ( Step SingleSlash RelativeLocationPath )
Step ::= ( AxisSpecifier NodeTest Predicate*)
| ( NodeTest Predicate*)
AxisSpecifier ::= (AxisName '::') // no need to mark the '::'
// [5.1] from WD-xslt1.1-20001212
Anchor ::= IdAnchor | KeyAnchor
IdAnchor ::= 'id' '(' Literal ')'
KeyAnchor ::= 'key' '(' Literal ',' Literal ')'