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

generating xml from xslt

Subject: generating xml from xslt
From: Sarkup Sarkup <sarkups@xxxxxxxxx>
Date: Tue, 26 Aug 2008 08:46:49 -0700 (PDT)
 generating xml from xslt

I have an xslt through which I am generating an XML file.

		<para>This is a test only</para>

I need to write an XSLT to generate this XML file. However, the values of add1, add2 and add3 are required to be entered at runtime. So I need to generate atleast 5 such xml files with different values for add1, add2 and add3. 

How do I do this? I started writing an XSLT for this. Here is what I have written so far. This is not complete and accurate so please let me know how to achieve this.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
<xsl:output method="xml"/>

 <xsl:template match="@*|node()">
   <xsl:apply-templates select="@*|node()"/>

<xsl:template match="/root/status/locn/loc1/address">
<xsl:element name="add1"></xsl:element>
<xsl:element name="add2"></xsl:element>
<xsl:element name="add3"></xsl:element>

Thank you

Current Thread


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.
First Name
Last Name
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.