[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Selecting from a node-set using variable path
Hi Gary. > This doesn't: > <xsl:variable name="t2" select="$myNodeSet/$myPath"/> You can't do this directly, has others already told you. You have to use some sort of evaluate function. > > I'm using MSXML 4.0 and it's complaining with: > NodeTest expected here. > $myNodeSet/-->$<--myPath > which makes sense. > > With MSXML you can do something like: <msxml:script language="Jscript" implements-prefix="user"> function find(node,path) { return node.selectSingleNode(path); } </msxml:script> And then: <xsl:variable name="t2" select="user:find($myNodeSet,$myPath)"/> Hope that this helps you. 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
|