|
Subject: Re: [xsl] how to concatenate fields? From: "J.Pietschmann" <j3322ptm@xxxxxxxx> Date: Mon, 07 Mar 2005 22:00:28 +0100 |
does this look correct?
> <xsl:if test="string-length(location)>0">
> <p><b><xsl:value-of select="location"/></b>" - "
^
The linefeed and the space used for indentation on the next line
will appear in the output and produce a visible space in the browser.
The quotes will also appear in the output.
You should use xsl:text here (see below)> <xsl:value-of select="publish_date"/>" - "</p> The </p> end tag will end the block, i.e. you are getting a new line in the browser.
Try
<p>
<xsl:if test="string-length(location)>0">
<b><xsl:value-of select="location"/></b>
<xsl:text>-</xsl:text>
<xsl:value-of select="publish_date"/>
<xsl:text>-</xsl:text>
</xsl:if>
<xsl:if test="string-length(/gapinc/body_text)>0">
<xsl:apply-templates select="/gapinc/body_text"/>
</xsl:if>
</p>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] how to concatenate fields, Tiffany Blake | Thread | RE: [xsl] how to concatenate fields, Tiffany Blake |
| RE: [xsl] how to concatenate fields, Tiffany Blake | Date | RE: [xsl] how to concatenate fields, Tiffany Blake |
| Month |