From: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 08, 2006 10:27 AM
To: xalan-j-users@xml.apache.org
Subject: Counter in xsl with xalanHi,
Since there is no counter in xsl that is, where I can increment a number ( independent) of nodes.
I am using xalan to generate the following code:
new String [] {"eAgchCodes_name0", "eAgchCodes_name1",…"eAgchCodes_name3"}
This is how the xml looks like:
<structMember name="eAgchCodes">
<description>One to four codes.
</description>
<sequence>
<long>
<range>
<min>0</min> <max>255</max>
</range>
</long>
<maxLength>4</maxLength>
</sequence>
</structMember>In order to generate the names I need a counter to increase each time until all four strings have been generated.
Any ideas how I can do that with Xalan-Java? Extensions?cheers,
//mikael
Title: Counter in xsl with xalan
Use recursion, passing the current count to a named
template and incrementing it.
- Counter in xsl with xalan Mikael Petterson \(KI/EAB\)
- RE: Counter in xsl with xalan Steve Carton
- RE: Counter in xsl with xalan toadie D
- RE: Counter in xsl with xalan Joseph Kesselman