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

an xsl/xpath question re attribute qualifiers

  • From: james anderson <james.anderson@a...>
  • To: xml-dev@l...
  • Date: Thu, 08 Mar 2001 03:53:00 +0100

xsl xpath attribute

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 ')'

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.