[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] how to test a condtion in XSL file ??


Subject: [xsl] how to test a condtion in XSL file ??
From: anand awasthi <anand-awasthi@xxxxxxx>
Date: 9 Feb 2001 10:47:32 MST

hi,
i have my XML content somthing like following:


	<JartaXmlReport>
		<RowNum>222000</RowNum>
		<Sid>222</Sid>
		<PageUrl>/cww/default.htm</PageUrl>
		<SessionStartupTime>22</SessionStartupTime>
		<PageTime>200000000</PageTime>
		<TransactionTime>200</TransactionTime>
		<Description>VeriSign Work Process</Description>
		<PageReferrer>unknown</PageReferrer>
		<Keywords>Document</Keywords>
		<DNSLookupTime>2</DNSLookupTime>
		<ModifiedDate>2000-10-18</ModifiedDate>
		<ModifiedBy>Ling</ModifiedBy>
	</JartaXmlReport>
	<JartaXmlReport>
		<RowNum>333000</RowNum>
		<Sid>333</Sid>
		<PageUrl>/yahoo.com/default.htm</PageUrl>
		<SessionStartupTime>33</SessionStartupTime>
		<PageTime>300000000</PageTime>
		<TransactionTime>300</TransactionTime>
		<Description>VeriSign Work Process</Description>
		<PageReferrer>unknown</PageReferrer>
		<Keywords>Document</Keywords>
		<DNSLookupTime>3</DNSLookupTime>
		<ModifiedBy>Ling</ModifiedBy>
	</JartaXmlReport>
	<JartaXmlReport>
		<RowNum>444000</RowNum>
		<Sid>444</Sid>
		<PageUrl>/bmc.com/default.htm</PageUrl>
		<SessionStartupTime>44</SessionStartupTime>
		<PageTime>400000000</PageTime>
		<TransactionTime>400</TransactionTime>
	</JartaXmlReport>


now i want to write a  rule in XSL which is someting like following :


if ((sessionstartuptime > 56) && ( PageTime <= 50)) || (Transaction Time ==
78)

then Dispaly X 
else Display Y


does someone have anyidea how this kind of condtion can be written in XSL file
??


tx
AA


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

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



Current Thread
Keywords