XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Rup ChatterjiSubject: Variable Assignment
Author: Rup Chatterji
Date: 16 Sep 2005 03:17 AM
Hi,
I know i'm asking the same old question but i couldn't find any solution to my problem. My problem is like is
i have a for loop. within this for loop i want print a line only once at the start of the loop. here is the pseudo code
for loop
if var_loop=1
print hello
set var_loop=0
end if
.
.
.
.
end for

how do i do this in xslt??

Postnext
Tony LavinioSubject: Variable Assignment
Author: Tony Lavinio
Date: 16 Sep 2005 02:46 PM
<xsl:if test="postion() = 1">

... your code here ...

</xsl:if>

Posttop
Rup ChatterjiSubject: Variable Assignment
Author: Rup Chatterji
Date: 18 Sep 2005 11:58 PM
hey thanx man it helped :))

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

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