[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

FW: Re: xpath-default-namespace with a variable

Subject: FW: Re: xpath-default-namespace with a variable
From: "Murray McDonald" <m.mcdonald@xxxxxxxxx>
Date: Mon, 19 Sep 2011 10:15:41 -0400
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.