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

Re: Not So Newbie XPath Question

Subject: Re: Not So Newbie XPath Question
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Mon, 19 Feb 2001 08:17:06 -0800 (PST)
Re:  Not So Newbie XPath Question
Hi Bernard,

> Bernard Harrison wrote:
> 
> DPawson@xxxxxxxxxxx wrote:
> > 
> >  ................................................
> > <xsl:template match="a[not(following-sibling::a)]" >
> >   <xsl:value-of select="name(following-sibling::*[1])"/>
> > </xsl:template>
> 
> Mmm. Does using following-sibling work given Jeni Tennison's Post?
> 
> Jeni Tennison wrote:
> > This will only work in a select expression because match patterns
> > don't allow following-sibling:: axes.  For a match pattern, you need
> > something like you have already or one of its equivalents, like:

She meant: "match patterns don't allow following-sibling:: axes" in the ***location steps***

So what Dave uses here is OK, because it is within a predicate.

The only axes that are allowed in the location steps of a match pattern are the "parent" and
"attribute" axes.

Dimitre Novatchev.



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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


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.