Try this:
<xsl:template match="sometag">
<b><xsl:apply-templates/></b>
</xsl:template>
<xsl:template match="br">
<br></br>
</xsl:template>
Chandra
----Original Message Follows----
From: Sam Carleton <sam@xxxxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] outputing tags
Date: Sat, 4 Jan 2003 14:35:39 -0500
MIME-Version: 1.0
Received: from mc6-f21.law1.hotmail.com ([65.54.252.157]) by
mc6-s12.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Sat, 4 Jan
2003 11:40:15 -0800
Received: from biglist.com ([216.223.208.41]) by mc6-f21.law1.hotmail.com
with Microsoft SMTPSVC(5.0.2195.5600); Sat, 4 Jan 2003 11:40:15 -0800
Received: from localhost (daemon@localhost)by biglist.com (8.8.8/8.8.5/BL-2)
with SMTP id OAA20270;Sat, 4 Jan 2003 14:35:30 -0500 (EST)
Received: by biglist.com (km_bm v1.13); Sat, 4 Jan 2003 14:35:13 -0500
Received: (from majordom@localhost)by biglist.com (8.8.8/8.8.5/BL-2) id
OAA20250;Sat, 4 Jan 2003 14:35:09 -0500 (EST)
Message-ID: <20030104193539.GA13880@xxxxxxxxxxxxxx>
User-Agent: Mutt/1.4i
Sender: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
X-MailLoop: 1
Return-Path: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
X-OriginalArrivalTime: 04 Jan 2003 19:40:15.0535 (UTC)
FILETIME=[1AC19BF0:01C2B429]
Folks,
How do I output some tags? The xml looks like this:
<sometag>This is to be displayed<br/>This is a new
line<br/>And this is on a thrid line</sometag>
Then I have a template like this:
<xsl:template match="sometag">
<b><xsl:apply-templates/></b>
</xsl:template>
How do I write a template that will output both of the
<br/>'s? so that it is displayed the right way?
Sam
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list