Page 1 of 1

xslt

Posted: Mon Jun 14, 2004 5:57 pm
by robina
hi friends i am new to xslt programming i have problem in using the for each and position tags.
this is my code...
<xsl:for-each select="input_information">
<xsl:if test="$info1-ident=@info">
<xsl:if test="position() = 1">


<span style="color:black; font-weight:bold;">Input of Activity:</span><br/>


</xsl:if> </xsl:if> </xsl:for-each>


here i mean to get Input of activity only on position 1. But I am not getting the expected results . anybody please help me . thanking you for your consideration.

Posted: Mon Jun 14, 2004 6:24 pm
by george
Hi,

Your XSLT code looks ok at a first glance. To be able to help you we will need a working sample (xml/xsl) that will show your problem and the expected output.

Best Regards,
George