This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Creating a white-space separated list in attribute values


Try putting the value of your header in your XML document as CDATA.

Cheers!
Mark

> 
> From: Bjorn Sandvik <Bjorn.Sandvik@nsd.uib.no>
> Date: 2001/08/15 Wed AM 08:56:41 EDT
> To: XSL-List@lists.mulberrytech.com
> Subject: [xsl] Creating a white-space separated list in attribute values
> 
> 
> I'm not able to make a white-space separated list in an attribute value in XSL.
> 
> <TD class="tabdat">
>    <xsl:attribute name="headers"><xsl:value-of 
> select="$KORTNAVN"/>#<xsl:value-of select="$VALGAAR"/>#<xsl:value-of 
> select="$VALGAAR"/>_stemmer</xsl:attribute>
>    <xsl:value-of select="@STEMMER"/>
> </TD>
> 
> The result from the parser (MSXML) should be like this:
> <TD class="tabdat" headers="A 1999 1999_stemmer)">64</TD>
> 
> But I'm not able to preserve spaces for attributes values, so I get this 
> result:
> <TD class="tabdat" classes="A19991999_stemmer)">64</TD>
> 
> Bjorn, Norway
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]