You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sebastien Koechlin I-VISION <sk...@n-soft.com> on 2000/04/27 19:30:00 UTC

space between two 'value-of'

When using something like :

	<xsl:template match="item">
	        <xsl:value-of select="@one"/>
	        <xsl:value-of select="@two"/>
	</xsl:template>

on

	<item one="abc" two="def" />

Cocoon (Xalan?) produce
	abcdef
and not
	abc def

Is it a feature or a bug ? How can I ask for
a space between 'abc' and 'def'?

-- 
Sebastien Koechlin

Re: space between two 'value-of'

Posted by Jari Aarniala <ja...@ioboxgroup.com>.
> <xsl:template match="item">
>         <xsl:value-of select="@one"/>
>         <xsl:value-of select="@two"/>
> </xsl:template>

Try

<xsl:template match="item">
        <xsl:value-of select="@one"/>
        <xsl:text> </xsl:text>
        <xsl:value-of select="@two"/>
</xsl:template>

    Jari