xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Identical entries in different input documents should appear in the output document only once


Subject: Re: [xsl] Identical entries in different input documents should appear in the output document only once
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 7 Sep 2007 21:54:34 +0100

> That's all ... Wow :-)

it's a bit more than you need though:-)


   <xsl:for-each select="current-group()[1]"> <!-- In my case all blocks

is (always) the same thing as

   <xsl:for-each select="."> <!-- In my case all blocks

which is always the same thing as

     <!-- In my case all blocks

so the code can be


<xsl:for-each-group select="document($allFiles)//root/block"
group-by="idTag">
 <!-- In my case all blocks
from different files are really identical -->
      <xsl:call-template name="makeMyTransformationOnTheBlock"/>
</xsl:for-each-group>


If <root> is always the top level element, using /root/block instead of
//root/block would save the processor a lot of work as // implies
(except when Michael optimizes it away) a full search to arbitrary depth
of each document to find all elements of that name.


David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________


Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor