[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XPath for variable search anywhere
Hi, > I have a variable in my XSL (call it myVar) and I wish to > search the entire > node hierarchy for nodes which share it's name. You could > say I want to > combine the syntax > > <xsl:copy-of select="//aNodeName"> > > with > > <xsl:copy-of select="$myVar"> > > but the syntax I want > > <xsl:copy-of select="//$myVar"> > > causes my processor (4suite) to generate an XsltException. > Does anybody > know the syntax I need to look at all levels of the hierarchy > for nodes that > have the name (or attribute) "myVar"? <xsl:copy-of select="*[name() = $myVar]"/> Cheers, Jarno - Hocico: Ruptura ([expletive deleted] 667 Remix by CombiCrist) XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|