[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How to declare a int variable in XSL

  • To: "Mohamed Raffi" <mohamedr@h...>
  • Subject: RE: How to declare a int variable in XSL
  • From: "Manos Batsis" <m.batsis@b...>
  • Date: Fri, 7 Jun 2002 12:53:45 +0300
  • Cc: <xml-dev@l...>
  • Thread-index: AcIOB52mpByBCvVATDu3PNZ9OJySzwAADlzQ
  • Thread-topic: How to declare a int variable in XSL

int variable

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@h...] 
Sent: Friday, June 07, 2002 12:31 PM
To: xml-dev@l...
Subject:  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.


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.