[xsl] Odd and Even problem Pt.2

Subject: [xsl] Odd and Even problem Pt.2
From: Kuhns Matt <kuhns_m@xxxxxxxxx>
Date: Fri, 18 Oct 2002 08:32:37 -0700 (PDT)
Forgive me once again. In an earlier post I simplified
the problem.
The first time could be like this:
XML:
<FileHeader>
	<Filename Val="MyFile"/>
	<Version Major="7" Minor="2" Maintenance="0"
Build="100"/>
	<UserModifiedFile Val="False"/>
	<Multiplier Val="20"/>
	<TotalVP Val="10"/>
	<TotalP Val="1"/>
	<TotalS Val="2"/>
	<TotalE Val="3"/>
	<TestDate Started="10/18/2001 - 13:55:57"
Ended="10/18/2001 - 14:04:12" Total="00:08:15"
Pre="00:00:00" User="00:08:15" Post="00:00:00"/>
	<Duration Val="8 Minutes and 15 Seconds "/>
	<Description> <![CDATA[sample2                       
                                 ]]>
</TestDescription>
	<ClientSystem> <![CDATA[Win2k                        
                                  ]]> </ClientSystem>
	<ServerSystem> <![CDATA[WinXP                        
                                  ]]> </ServerSystem>
	<Database> <![CDATA[Oracle                           
                               ]]> </DatabaseSize>
	<Remarks> <![CDATA[Hi]]> </Remarks>
</FileHeader>
HTML:
<class="odd">FileName : Myfile</class>
<class="even">Description : sample2</class>
<class="odd">Clientsystem: Win2k</class>
<class="even">Serversystem: WinXP</class>
<class="odd">Database : Oracle</class>
<class="even">Remarks : Hi</class>
<class="odd">TotalS : 2</class>
<class="even">Totalp : 1</class>
<class="odd">Totalvp : 10</class>
<class="even">Totale : 1</class>

The second time could be like this:
XML:
<FileHeader>
	<Filename Val="MyFile"/>
	<Version Major="7" Minor="2" Maintenance="0"
Build="100"/>
	<UserModifiedFile Val="False"/>
	<Multiplier Val="20"/>
	<TotalVP Val="10"/>
	<TotalP Val="1"/>
	<TotalS Val="1"/>
	<TotalE Val="1"/>
	<TestDate Started="10/18/2001 - 13:55:57"
Ended="10/18/2001 - 14:04:12" Total="00:08:15"
Pre="00:00:00" User="00:08:15" Post="00:00:00"/>
	<Duration Val="8 Minutes and 15 Seconds "/>
	<Description> <![CDATA[sample2                       
                                 ]]>
</TestDescription>
	<ClientSystem> <![CDATA[Win2k                        
                                  ]]> </ClientSystem>
	<Database> <![CDATA[Oracle                           
                              ]]> </DatabaseSize>
</FileHeader>
HTML:
<class="odd">FileName : Myfile</class>
<class="even">Description : sample2</class>
<class="odd">Clientsystem: Win2k</class>
<class="even">Database : Oracle</class>
<class="odd">TotalS : 2</class>
<class="even">Totalp : 1</class>
<class="odd">Totalvp : 10</class>
<class="even">Totale : 1</class>
The fields that are optional are Description,
ClientSystem, Database, ServerSystem, and Remarks. The
data has to be presented in that order 
given in the html, which is not the same order that it
is in the XML. I would love to have a variable to keep
track of things. Is the solution
too hard, because I could go back to the XML generator
and generate the data differently, but now I'm real
curious about this problem
Thanks so much



__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

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


Current Thread