Re: [xsl] Not So Newbie XPath Question

Subject: Re: [xsl] Not So Newbie XPath Question
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 19 Feb 2001 16:23:49 GMT
> Mmm. Does using following-sibling work given Jeni Tennison's Post?

you can use any XPath expression inside a [] predicate. The axis
restriction only applies to step construction.

so you can't do
match="a/following-sibling::b]"
but you can do
match="b[preceding-sibling::a]
which matches what was intended, a b with an earlier a sibling.


(However I don't think Dave's stylesheet is doing quite what you asked
for)

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

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


Current Thread