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

Re: current()

Subject: Re: current()
From: Jörg Heinicke <joerg.heinicke@xxxxxx>
Date: Wed, 28 Nov 2001 01:35:59 +0100
Re:  current()
Thanks, I found the correct version:

select="inst[not(@inst-src=preceding-sibling::inst/@inst-src)]"

I had a completely wrong conception of current() - only because of the bug
in Xalan til version 2.2.D9. After upgrading it my stylesheet didn't work
anymore.

Regards,

Joerg

----- Original Message -----
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, November 28, 2001 12:46 AM
Subject: RE:  current()


> > My XML:
> >
> > <cluster>
> >     <inst machine="test1.virbus.de" inst-src="srctest"/>
> >     <inst machine="test2.virbus.de" inst-src="srctest2"/>
> >     <inst machine="test3.virbus.de" inst-src="srctest"/>
> > </cluster>
> >
> > My XSL:
> >
> > <xsl:template match="cluster">
> >     <xsl:apply-templates
> > select="inst[not(preceding-sibling::inst[@inst-src=current()/@
> > inst-src])]"/>
> > </xsl:template>
>
> current() will return a <cluster> element, which does not have an
@inst-src
> attribute.
>
> Mike Kay


 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.