Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] Using the Input Document to Control Generation of Numbers in the Output [Thread Next] RE: [xsl] Using the Input Document to Control Generation of Numbers in the OutputTo: Date: 10/2/2007 1:58:00 PM > 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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
