This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Using name in Xpath
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 23 May 2002 19:08:47 +0100
- Subject: RE: [xsl] Using name in Xpath
- Reply-to: xsl-list at lists dot mulberrytech dot com
> Am I using name() incorrectly in the following xpath?
> <xsl:value-of
select="$emailData/data/[name()=$pSite]/reply_to" />
You are using predicates incorrectly. I can't correct it for you because
I have no idea what you thought it might mean, but a predicate can only
follow a step, e.g.
child::element[predicate]
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list