[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
an xsl/xpath question re attribute qualifiers
- From: james anderson <james.anderson@attglobal.net>
- To: xml-dev@lists.xml.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?
// [2]
AbsoluteLocationPath ::= (SingleSlash RelativeLocationPath? )
| AbbreviatedAbsoluteLocationPath
// [2.1]
| (Anchor SingleSlash RelativeLocationPath? )
// [3]
RelativeLocationPath ::= ( Step SingleSlash RelativeLocationPath )
| Step
| AbbreviatedRelativeLocationPath
// [4]
Step ::= ( AxisSpecifier NodeTest Predicate*)
| ( NodeTest Predicate*)
| AbbreviatedStep
// [5]
AxisSpecifier ::= (AxisName '::') // no need to mark the '::'
| AbbreviatedAxisSpecifier
// [5.1] from WD-xslt1.1-20001212
Anchor ::= IdAnchor | KeyAnchor
IdAnchor ::= 'id' '(' Literal ')'
KeyAnchor ::= 'key' '(' Literal ',' Literal ')'