This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Urgent-how to select node descent of a node


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]