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] efficiency


Subject: Re: [xsl] efficiency
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 27 Mar 2002 21:50:32 GMT


<xsl:if test="count(Memos/Memo) &gt; 1">

<xsl:for-each select="Memos/Memo">

<xsl:if test="position() &gt; 1"><xsl:text>88,</xsl:text><xsl:value-of
select="."/></xsl:if>

</xsl:for-each>

</xsl:if>


you can do

<xsl:for-each select="(Memos/Memo)[position()&gt;1]">

<xsl:text>88,</xsl:text><xsl:value-of select="."/>

</xsl:for-each>

David


_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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