xsl-list
[Top] [All Lists]

Re: [xsl] Selecting the value from diff i/p XML

2010-09-15 22:38:35
On Thu, Sep 16, 2010 at 6:14 AM, Mukul Gandhi 
<gandhi(_dot_)mukul(_at_)gmail(_dot_)com> wrote:
2.0

  <xsl:for-each select="item[(_at_)id = key('by-id', current()/@id, 
$doc2)/@id]">

here the loop is linear too (i.e a linear traversal from user
perspective -- though in memory real traversal algorithm could be XSLT
processor specific), but the value lookup by 'key' here is indexed by
the XSLT processor (the internals of this is again processor
specific), which usually performs faster for large data sets.



-- 
Regards,
Mukul Gandhi

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