Re: [xsl] problem converting xml to excel

Subject: Re: [xsl] problem converting xml to excel
From: Anna Bikkina <anna@xxxxxxxxxxxxxx>
Date: Fri, 12 Mar 2004 14:06:36 -0500
Still something is going wrong . 

<xsl:template match="col">
	   <!-- avoids Result Tree Fragments -->
	   <xsl:param name="rownumber" select="0"/>
	   <xsl:param name="colnumber" select="0"/>
	   <gmr:Cell ValueType="60" Col="{$colnumber}" Row="{$rownumber}">  
	   		<xsl:if test="string-length(col)>0">		  
		       <xsl:apply-templates select="." mode="value"/>
		    </xsl:if> 		  
	   </gmr:Cell>
	</xsl:template>

When I applied the if condition all the cells in excel now contain the value 
in row0 col0. Am I missing something here.

Thanks again for ur time

Anna.


On Friday 12 March 2004 01:46 pm, Jarno.Elovirta@xxxxxxxxx wrote:
> Hi,
>
> > I was wondering if I can check if the string-length for a
> > element is greater
> > than 0 and then display the required results.
>
>   <xsl:if test="string-length(element) > 0">
>     ...
>   </>
>
> Cheers,
>
> Jarno
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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


Current Thread