You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by Benoit Fouche <b....@cross-systems.com> on 2000/03/31 17:08:38 UTC
How to code space char in XSL stylesheet ?
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: <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:& <xsl:value-of select="@title"/>
</xsl:for-each>
but it gave me that: titre: Menu1
What can I do so ?
thanks for help...
Re: How to code space char in XSL stylesheet ?
Posted by Norman Walsh <nd...@nwalsh.com>.
/ "Benoit Fouche" <b....@cross-systems.com> was heard to say:
| <xsl:for-each select="menu">
| titre: <xsl:value-of select="@title"/>
| </xsl:for-each>
You could just us a space, but if you want a non-breaking space,
try  
Be seeing you,
norm
--
Norman Walsh <nd...@nwalsh.com> | The average man, who does not know
http://nwalsh.com/ | what to do with his life, wants
| another one which will last
| forever.--Anatole France
Re: How to code space char in XSL stylesheet ?
Posted by John Carroll <jc...@micromuse.com>.
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: <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:& <xsl:value-of select="@title"/>
> </xsl:for-each>
>
> but it gave me that: titre: 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.