[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: preceding-sibling in a group
It would be good to see the problem in context, but if you want to select elements that are both (a) members of the current group, and (b) preceding siblings of the current element, then you could use (preceding-sibling::* intersect current-group()). I suspect though that there is a better solution. Michael Kay Saxonica > On 19 May 2021, at 17:45, rick@xxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Hi, > > If I am processing elements in the current-group (), is the preceding-sibling axis restricted to the current group? I want to test the value on a preceding-sibling element, but want to restrict it to the group I am processing. Any pointers would be appreciated. I am using XSLT 3. Thank you very much. > > Rick > > Rick Quatro > Carmen Publishing Inc. > 585-729-6746 > rick@xxxxxxxxxxxxxxx <mailto:rick@xxxxxxxxxxxxxxx> > http://www.frameexpert.com/store <http://www.frameexpert.com/store> > > > XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> > EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/293509> (by email <>)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|