[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: outputing tags

Subject: Re: outputing tags
From: "Chandra -" <pchandramohan@xxxxxxxxxxx>
Date: Sat, 04 Jan 2003 15:00:00 -0500
chandra sat
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: 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



Current Thread
  • outputing tags
    • Sam Carleton - Sat, 4 Jan 2003 14:35:09 -0500 (EST)
      • <Possible follow-ups>
      • Chandra - - Sat, 4 Jan 2003 15:11:16 -0500 (EST) <=
      • cknell - Sat, 4 Jan 2003 18:43:41 -0500 (EST)
      • cknell - Sun, 5 Jan 2003 11:34:04 -0500 (EST)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.