Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Using the Input Document to Control Generation of Numbers in the Output


Subject: RE: [xsl] Using the Input Document to Control Generation of Numbers in the Output
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 2 Oct 2007 14:57:37 +0100

> What about
> <xsl:template match="incoming">
>    <outgoing name="{@name}" 
> index="{count(preceding-sibling::*[not(@size)]) + 1 + 
> sum(preceding-sibling::*/@size)}"></outgoing>
>   </xsl:template>


Sure, you can do that, but it's likely to be O(n^2).

Michael Kay
http://www.saxonica.com/


Current Thread
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor