so if i remove the extra line breaks and add the hypens, the revision would
look something like:
<xsl:if test="string-length(location)>0">
<p><b><xsl:value-of select="location"/></b>" - "
<xsl:value-of select="publish_date"/>" - "</p>
</xsl:if>
<xsl:if test="string-length(/gapinc/body_text)>0">
<xsl:apply-templates select="/gapinc/body_text"/>
</xsl:if>
does this look correct?
Tiffany
-----Original Message-----
From: Deirdre Saoirse Moen [mailto:deirdre(_at_)deirdre(_dot_)net]
Sent: Monday, March 07, 2005 11:46 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] how to concatenate fields?
On Mon, 7 Mar 2005, Tiffany Blake wrote:
i'm a newbie to xml/xslt - i need to revise my output to combine
multiple fields into one and at the same time insert extra characters.
how do i change the following code to do this?
Well, you've got a clue in your text already, because you're inserting
extra characters with the <b> and </b>, correct?
If you remove the </br> (which should be <br/> in order to be
well-formed), that will put them on the same line.
how do i force "location", "publish_date" and "body_text" on the same
line AND insert a hyphen "-" between each field?
--
_Deirdre web: http://deirdre.net blog: http://deirdre.org/blog/
yarn: http://fuzzyorange.com cat's blog: http://fuzzyorange.com/vsd/
"Memes are a hoax! Pass it on!"
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--