xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Carroll <...@micromuse.com>
Subject Re: How to code space char in XSL stylesheet ?
Date Fri, 31 Mar 2000 15:43:55 GMT
Benoit Fouche wrote:

> Hi !
> Can someone told me how to code a space in a XSL stylsheet ? (to transform
> XML to basic HTML...)
>
> I tried this:
>
> <xsl:for-each select="menu">
>     titre:&nbsp;<xsl:value-of select="@title"/>
> </xsl:for-each>
>
> but my DOM (Micro$oft parser) objet is crashing (error '80070057'  wrong
> parameter Default.asp, line 12 )
>
> and that:
>
> <xsl:for-each select="menu">
>     titre:&amp;&nbsp;<xsl:value-of select="@title"/>
> </xsl:for-each>
>
> but it gave me that:    titre:&nbsp;Menu1
>
> What can I do so ?
> thanks for help...
>
> ---------------------------------------------------------------------
> In case of troubles, e-mail:     webmaster@xml.apache.org
> To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
> For additional commands, e-mail: general-help@xml.apache.org

Hi,
try using :

<xsl:for-each select="menu">
    <xsl:text>titre: </xsl:text><xsl:value-of select="@title"/>
</xsl:for-each>

cheers,

John.


Mime
View raw message