Subject: [xsl] how to concatenate fields? From: "Tiffany Blake" <Tiffany_Blake@xxxxxxx> Date: Mon, 7 Mar 2005 11:28:59 -0800 |
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? currently, the fields are displayed on separate lines: <xsl:if test="string-length(location)>0"> <p><b><xsl:value-of select="location"/></b><br> <xsl:value-of select="publish_date"/></br></p> </xsl:if> <xsl:if test="string-length(/gapinc/body_text)>0"> <p><xsl:apply-templates select="/gapinc/body_text"/></p> </xsl:if> how do i force "location", "publish_date" and "body_text" on the same line AND insert a hyphen "-" between each field? please advise, Tiffany
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] [Ann] XSLfast Version 2.0 wil, Gerd Napieraj | Thread | Re: [xsl] how to concatenate fields, Deirdre Saoirse Moen |
Re: [xsl] break or exit in xsl?, Dimitre Novatchev | Date | Re: [xsl] Media types used in xml-s, J.Pietschmann |
Month |