This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: output content after <br>
- From: Américo Albuquerque <aalbuquerque at viseu dot ipiaget dot pt>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 28 May 2002 14:28:19 +0100
- Subject: RE: [xsl] output content after <br>
- Keywords: XSL-List
- Reply-to: xsl-list at lists dot mulberrytech dot com
You see, the problema is that the <br/> tag is empty and when you apply the
<xsl:value-of> tag you are applying it to the tag node.
try with this xml and see what happens:
<par type="text">
<content>Sound Pressure Level (LpA):<break><= x.x B(A), xx
dB(A)</break></content>
</par>
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of valerie
liston
Sent: terça-feira, 28 de Maio de 2002 14:00
To: XSL-List@lists.mulberrytech.com
Subject: [xsl] output content after <br>
Hello,
I am having a problem outputting content that comes after a br tag.
Here is the xml:
<par type="text">
<content>Sound Pressure Level (LpA):<break/><= x.x B(A), xx
dB(A)</content>
</par>
Heres my xslt;
<xsl:template match="content">
<xsl:value-of select="node()"/>
<xsl:apply-templates select="break"/>
</xsl:template>
<xsl:template match="break">
<br/>
<xsl:value-of select="node()"/> <!-- I think its at this point that I
need say output the remaining content -->
</xsl:template>
Heres my output:
<td>Sound Pressure Level (LpA):<br></td>
How do I get the information after the <br> tag to appear?
Thanks for your help
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list