OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: [xml-dev] How to declare a int variable in XSL

[ Lists Home | Date Index | Thread Index ]
  • To: "Mohamed Raffi" <mohamedr@huawei.com>
  • Subject: RE: [xml-dev] How to declare a int variable in XSL
  • From: "Manos Batsis" <m.batsis@bsnet.gr>
  • Date: Fri, 7 Jun 2002 12:53:45 +0300
  • Cc: <xml-dev@lists.xml.org>
  • Thread-index: AcIOB52mpByBCvVATDu3PNZ9OJySzwAADlzQ
  • Thread-topic: [xml-dev] How to declare a int variable in XSL

Please address XSLT questions to more related forums such as [1]. Using
plain text instead of html as the message format is a good idea ;-)
Variables in XSLT are finals once initialized for each template or
xsl:for-each iteration (or for every iteration if they are declared
globally). You need to solve this using Xpath. For example, if your
for-each matches FOO elements, the match expression should be something

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

Where &gt; denotes >

[1] http://www.mulberrytech.com/xsl/xsl-list/



-----Original Message-----
From: Mohamed Raffi [mailto:mohamedr@huawei.com] 
Sent: Friday, June 07, 2002 12:31 PM
To: xml-dev@lists.xml.org
Subject: [xml-dev] How to declare a int variable in XSL


   Do anyone know how to declare a int variable in XSL.
say i want to put some delimeter for each iteration in <xsl:for-each>
except the first iteration.
how can i do that?
please let me know.
Thanks in advance.


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS