Subject: [xsl] Conditional Assigining From: "Sri ni" <srini75@xxxxxxxxxxx> Date: Wed, 16 May 2001 15:48:24 -0000 |
<xsl:variable name="ID">-1</xsl:variable> <xsl:for-each select="Section[parentID='0']"> <xsl:if test="$ID=-1"> <xsl:variable name="ID" select="sectionID" /> </xsl:if> id <xsl:value-of select="$ID"/>
Output: ----------- id = -1. In the first instance.
All i want is similar to this one. int x = 0; while ( true) { if ( x == 0 ){ x = 1; } x = 2; }
Cheers Srini
From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: RE: [xsl] Problem of syntax of filter ? Date: Wed, 16 May 2001 15:48:29 +0100
> I declare $downloadType like this : > > <xsl:variable name="downloadType"> > <xsl:value-of > select="$tchFile/Delivery/DeliveryDescription/@downloadType"/> > </xsl:variable>
I think you'd better show us the whole stylesheet, because otherwise we'll carry on imagining things you might have got wrong in the parts you haven't shown us.
Mike Kay Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
_________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] character transformation,, Michael Kay | Thread | Re: [xsl] Conditional Assigining, David Carlisle |
RE: [xsl] XSL/XPath expression, Eriksson Magnus | Date | Re: [xsl] character transformation,, David Carlisle |
Month |