|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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><= 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: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








