Subject: RE: [xsl] Urgent-how to select node descent of a node From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Thu, 20 Jun 2002 23:58:23 +0100 |
> 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@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Urgent-how to select node, David Carlisle | Thread | Re: AW: [xsl] Writing a stylesheet , Olivier Collioud |
RE: [xsl] Multiple search, Michael Kay | Date | RE: [xsl] Detecting a break in data, Michael Kay |
Month |