xsl-list
[Top] [All Lists]

Re: use-when attribute?

2004-12-18 03:30:09
I suppose one obvious approach would be this ...

    <xsl:variable name="citerefs" select="//db:biblioref/@linkend |
                                    //cite:biblioref/@cite:key |
                                    //tei:cit/@href"/>

.... but I'm worried that's a bad idea from a performance standpoint. Any other alternatives?

If performance is your only worry with this expression (you don't seem to worry about 'interference'), you could use the following:

<xsl:key name="citerefs" match="db:biblioref/@linkend" use="'all'" />
<xsl:key name="citerefs" match="cite:biblioref/@cite:key" use="'all'" />
<xsl:key name="citerefs" match="tei:cit/@href" use="'all'" />

And use key('citerefs', 'all') instead of $citerefs..

Cheers,
Geert

--~------------------------------------------------------------------
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>