This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: output content after <br>


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@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/>&#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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]