[xsl] empty string

Subject: [xsl] empty string
From: "Yan, Charlene" <Charlene.Yan@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 17 Jun 2003 17:31:27 -0400
Is there a way to put an empty string in xsl.  I use <xsl:value-of select="' '"/>.  Somehow it is automatically filled with a value of another cell.  Any ideas why?  Thanks!

<gmr:Cell Col="3"  Row="31" ValueType="60">
      <xsl:attribute name="Row">
         <xsl:value-of select="30 + $rownumber"/>
      </xsl:attribute>     
       <xsl:value-of select="' '"/>
     </gmr:Cell>

-----Original Message-----
From: J.Pietschmann [mailto:j3322ptm@xxxxxxxx]
Sent: Tuesday, June 17, 2003 5:07 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] grouping by unique...


Fei Zheng wrote:

> I'd like to have an unique solution list.  Anyone can tell what's
 > wrong with the following code which gives all solutions instead of
 > the unique solutions?
>     	      select="item[not(metadata/solution = preceding-sibling::metadata/solution)]/metadata/solution"	/>

You are using the preceding-sibling on the wrong element.
Try
   select="item/metadata/solution[not(. = preceding-sibling::solution)]"/>

J.Pietschmann



 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