xsl-list
[Top] [All Lists]

Re: keyed lookup table

2005-02-17 11:18:43

You should have mentioned you were using 2.0.:-)

I was hoping I could access that table via a key:

      <xsl:key name="language-code" match="name" use="@code"/>

yes you could, assuming namespaces match up.


that I would access with this expression:
      key('language-code', 'de', $stylesheet)"/>

 given:

      <xsl:variable name="stylesheet" select="document('')"/>

no don't do that, although it ought to work, it causes the stylesheet to
be re-parsed. In 2.0 you can query into variables so you can just use
$language-table  instead of $stylesheet.

I'd guess it's a namespace problem.

David



________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>