RE: [xsl] output content after <br>

Subject: RE: [xsl] output content after <br>
From: Américo Albuquerque <aalbuquerque@xxxxxxxxxxxxxxxx>
Date: Tue, 28 May 2002 14:28:19 +0100
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>&#060;= x.x B(A), xx
dB(A)</break></content>
</par>

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of valerie
liston
Sent: terça-feira, 28 de Maio de 2002 14:00
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
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/>&#060;= 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


Current Thread