[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] output content after
Hello,
I would change your code at another point:
<xsl:value-of select="node()"/> - as you had it - selects the value of the first node(), in your case only the first text node. If you change it to <xsl:copy-of select="node()"/> or <xsl:copy-of select="text()"/> all nodes or all text will be copied. After the text your <br/> will be appended. So the above should work easier and better. There is a built-in template, which outputs every text-node similar to:
Regards,
Joerg
--
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] output content after
Subject: Re: [xsl] output content after <br> From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Tue, 28 May 2002 15:12:18 +0200 |
Hello,
I would change your code at another point:
<xsl:template match="content"> <xsl:apply-templates select="node()"/> </xsl:template>
<xsl:template match="break"> <br/> </xsl:template>
<xsl:value-of select="node()"/> - as you had it - selects the value of the first node(), in your case only the first text node. If you change it to <xsl:copy-of select="node()"/> or <xsl:copy-of select="text()"/> all nodes or all text will be copied. After the text your <br/> will be appended. So the above should work easier and better. There is a built-in template, which outputs every text-node similar to:
<xsl:template match="text()"> <xsl:value-of select="."/> </xsl:template>
Regards,
Joerg
--
System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 joerg.heinicke@xxxxxxxxx www.virbus.de
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] output content after <br>, valerie liston | Thread | AW: [xsl] output content after <br>, Stefan Groschupf |
[xsl] output content after <br>, valerie liston | Date | RE: [xsl] Conditional document merg, Hunsberger, Peter |
Month |