[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] FW: Re: xpath-default-namespace with a variable
Martin, Andrew Defining a prefix to associate with the URI accomplished what I wanted. <xsl:key name="definitions" match="myns:glossentry" use="myns:term/@key"/> <xsl:variable name="definition"> <xsl:value-of select="key('definitions', $normalizedText, $glossaryDocument)/myns:definition"/> </xsl:variable> I hadn't realized the key function had been extended to add the "top" parameter in XSLT 2; It's a nice simplification to get the key evaluated in the desired context. Thanks to you both for your replies. Murray
|
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
|