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

Re: transformation to create an XML file

Subject: Re: transformation to create an XML file
From: Chris von See <chris@xxxxxxxxxxxxx>
Date: Fri, 22 Aug 2008 15:21:16 -0700
Re:  transformation to create an XML file
If you mean that you want to be able to change element names based on stylesheet parameters, you should be able to use <xsl:element name="{$parameterName}">...</xsl:element>, where "$parameterName" is the variable containing the name of the element you want to create.

If you want to change the content of elements with fixed names of "param1" and "param2" then you can definitely include content from stylesheet parameters using <xsl:value-of select="$paramData" /> where "$paramData" contains the content you want to place inside the param1 or param2 elements.

Cheers Chris

On Aug 22, 2008, at 3:15 PM, Sarkup Sarkup wrote:

I want to be able to create a dynamic xml file by passing parameters at run time. I know XSLT for styling. I want to now dynamically create an XML file.

--- On Fri, 8/22/08, Bordeman, Chris <Chris.Bordeman@xxxxxxxxxxxxxxxxx> wrote:

From: Bordeman, Chris <Chris.Bordeman@xxxxxxxxxxxxxxxxx>
Subject: RE:  transformation to create an XML file
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Date: Friday, August 22, 2008, 10:10 PM
That's exactly what XSLT is for.  Bare minimum, read the
starting at http://www.w3schools.com/xsl/xsl_languages.asp.

Chris Bordeman
Senior Software Developer
AppOne, Inc., a Wolters Kluwer Financial Services Company
"Connecting dealers & lenders"
225. 754. 5912 (P)
866. 422. 9910 (F)

-----Original Message----- From: Sarkup Sarkup [mailto:sarkups@xxxxxxxxx] Sent: Friday, August 22, 2008 5:04 PM To: mulberry list Subject: transformation to create an XML file


I want to be able to write a transformation to create an
xml file like




I want to define what param1 and param2 values will be when
I run the
tranformation. Is it possible to do this using XSLT? Can
anyone provide
me with some examples?


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.