This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Urgent-how to select node descent of a node
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 20 Jun 2002 23:58:23 +0100
- Subject: RE: [xsl] Urgent-how to select node descent of a node
- Reply-to: xsl-list at lists dot mulberrytech dot com
> I try to get some value of nodes at:
> /html/body/blockquote/div[1]/table/tr/td/font and
> /html/body/blockquote/div[2]/table/tr/td/font
> /html/body/blockquote/div[3]/table/tr/td/font
>
> $beginpath/*[name()=$tag][position()=$index]//$endpath
>
> but evidenly it doesnt run.
>
Variables in XSLT are not macros. They represent values, not bits of
XPath expression text. You can't construct an XPath expression from
string variables, except by use of extension functions such as
saxon:evaluate() (which almost certainly isn't needed here.)
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