This is the mail archive of the xsl-list@mulberrytech.com mailing list .
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
I'm doing this: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <xsl:template match="/FieldMapLists"> <xsl:for-each select="FieldMapList"> <xsl:sort data-type="number" order="descending" select="sum(StartPos | Size)"/> <xsl:choose> <xsl:when test="position() = 1"> <xsl:value-of select="StartPos + Size"/><br/> </xsl:when> </xsl:choose> </xsl:for-each> </xsl:template> </xsl:stylesheet> I was wondering if there was a simplier way, or is this the way to do it. I'm never sure if I'm doing it the "right" way. :) -- David B. Bitton david@codenoevil.com Diversa ab illis virtute valemus.
Attachment:
msg00869/pgp00000.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |