xsl-list
[Top] [All Lists]

Re: outputing tags

2003-01-04 13:00:00
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(_at_)linux-info(_dot_)net>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
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(_at_)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(_at_)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(_dot_)GA13880(_at_)linux-info(_dot_)net>
User-Agent: Mutt/1.4i
Sender: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
X-MailLoop: 1
Return-Path: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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



<Prev in Thread] Current Thread [Next in Thread>