xsl-list
[Top] [All Lists]

Re: Conditional Grouping

2005-03-09 21:35:26
Hi Alex,
  Everything looks fine to me. Except you can improve
the performance of the transform by replacing the
below statement with..
<xsl:template match="LINEITEMS">
  <xsl:for-each select="item[generate-id() ......

Please don't use // . As it searches the item nodes
from root node to arbitrary depth.. This is an
expensive operation and does not seem to be required..

Regards,
Mukul

--- Alex Zelinski <Alex(_dot_)Zelinski(_at_)grainger(_dot_)com> wrote:
<xsl:template match="LINEITEMS">
  <xsl:for-each select="//item[generate-id() =
generate-id(key('refdocno-group', REF_DOC_NO)[1])]">
 
Alex Zelinski




                
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

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