[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] XPath attribute expression
Subject: Re: [xsl] XPath attribute expression From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 19 Dec 2006 00:06:12 GMT |
> /topLevel/ents/ent[@name eq current()/@name]/value Note that's an XPath2 expression. Use = not eq if you are using XSLT 1. Also current() is an xslt-only function, you asked about xpath. If you are using xslt you may be able to spead things up considerably by using a key. <xsl:key name="ent" match="ent" use="@name"/> then ...<xsl:value-of select="key('ent',@name)"/>... David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XPath attribute expressio, Florent Georges | Thread | Re: [xsl] XPath attribute expressio, Alexey Nickolaenkov |
Re: [xsl] XPath attribute expressio, Florent Georges | Date | Re: [xsl] Apache FOP Border, Tony Lavinio |
Month |
Keywords