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

Re: Correct way to handle nested tags

Subject: Re: Correct way to handle nested tags
From: "Åsa [asplistan]" <asplistan@xxxxxxxxxxx>
Date: Wed, 13 Jun 2001 10:25:56 -0000
html nested tags
Try like this in the xsl:

<xsl:template match="/">
  <html>...and the rest...
	<xsl:apply-templates select="text"/>
  </html>
</xsl:template>


<xsl:template match="text"> <xsl:apply-templates/> </xsl:template>

<xsl:template match="img">
	<img src="{@src}"/>
</xsl:template>


:-) åsa



From: Athanasios Gaitatzes <gaitat@xxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: XSL List <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Subject:  Correct way to handle nested tags
Date: Wed, 13 Jun 2001 12:54:27 +0300


Hi there,


I have the xml:
<text>
  some text <img src="img1.gif"/>
  more text <img src="img2.gif"/>
  some more text <img src="img3.gif"/>
  end of text
</text>

How would I generate the html:
"some text <img src="img1.gif"> more text <img src="img2.gif"> some more
text <img src="img3.gif"> end of text"

Thank you.
--
Athanasios Gaitatzes (gaitat@xxxxxx)
Virtual Reality Department
Foundation of the Hellenic World
254 Pireos St., Tavros 17778, Athens Greece
Tel: +30 1 483-5300 ext. 1132


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



_________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

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.