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

Need XML tags too

Subject: Need XML tags too
From: "Sharmila Pandith" <sharmila@xxxxxxxxx>
Date: Mon, 3 May 1999 17:07:50 -0400
saab 900 convertible
Hi,
I have the following code in the first xml file.

<coding>
	<transportation>
		<auto>
			<auto_side value="sell">sell</auto_side>
			<auto_category value="used">used</auto_category>
			<auto_year>1991</auto_year>
			<auto_make>Saab</auto_make>
			<auto_model>900 Convertible</auto_model>
			<auto_mileage>72000</auto_mileage>
			<auto_price>$13,900</auto_price>
			<auto_exterior>white</auto_exterior>
			<auto_interior>gray leather</auto_interior>
			<auto_body value="convertible">convertible</auto_body>
			<auto_vin>372AB918098910X</auto_vin>
		</auto>
	</transportation>
</coding>

I would like to reproduce
			<auto_side value="sell">sell</auto_side>
			<auto_category value="used">used</auto_category>
			<auto_year>1991</auto_year>
			<auto_make>Saab</auto_make>
			<auto_model>900 Convertible</auto_model>
			<auto_mileage>72000</auto_mileage>
			<auto_price>$13,900</auto_price>
			<auto_exterior>white</auto_exterior>
			<auto_interior>gray leather</auto_interior>
			<auto_body value="convertible">convertible</auto_body>
			<auto_vin>372AB918098910X</auto_vin>
in my second xml.

So, I wrote the following code:
						<xsl:for-each select="advertisement/coding/transportation/auto">
						      <auto>
							     <xsl:apply-templates/>
						      </auto>
						</xsl:for-each>

This gives me:
			sell
			used
			1991
			Saab
			900 Convertible
			72000
			$13,900
			white
			gray leather
			convertible
			372AB918098910X
but not the xml tags.

Does anyone know how to get the XML tags too.

Thanks in advance,
S P


 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.