|
Subject: FW: Re: [xsl] xpath-default-namespace with a variable From: "Murray McDonald" <m.mcdonald@xxxxxxxxx> Date: Mon, 19 Sep 2011 10:15:41 -0400 |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] xpath-default-namespace w, Murray McDonald | Thread | [xsl] Need table to break, Rodney Boyd |
| Re: [xsl] xpath-default-namespace w, Murray McDonald | Date | [xsl] Need table to break, Rodney Boyd |
| Month |