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

Re: finding position() in xpath 1.0

Subject: Re: finding position() in xpath 1.0
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 19 Mar 2007 14:07:09 GMT
Re:  finding position() in xpath 1.0
> can you say why
> results error 'Axis in pattern must be child or attribute'?

because you asked for an Xpath expression, and XSLT match patterns are
not XPath and have a completely separate grammar specified (although the
syntax is a subset of that of XPath). You can't use a  following-sibling
step in a pattern (other than inside a predicate, where any XPath may be
used).

The rewrite I just posted actually avoids the following-sibling::CELL[1]
step for other reasons, so would work as a pattern.

Note however that if your actual usage is as an xsl pattern then almost
certsinly none of these are really what you want to do. If you are
inside XSLT rather than just asking for a pure xpath solution there are
far better ways available, probably.

David

Current Thread

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
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.