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

Re: xml to xml transformation

Subject: Re: xml to xml transformation
From: "Steven Curry" <scurry1@xxxxxxx>
Date: Thu, 01 May 2003 11:18:17 -0700
steven curry
Thanks for the responses, the solutions work!

Steve

From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  xml to xml transformation
Date: Tue, 29 Apr 2003 00:35:28 +0200

Steven Curry wrote:
I need to do a minor transformation of large documents scheduled daily where the result will be the same as the original except one repeating element is transformed. What is the best way to transform just these elements while leaving the rest of the document the same? (I'm an xslt newbie by the way) Is xslt appropriate performance wise?

It depends. A SAX filter is likely more performant but can be much harder to maintain. You'll have to consider the tradeoff between perhaps throwing a bit more expensive hardware at the problem and more software cost.


Also, I haven't been able to get the transformation right. I need to take the value of an attribute and make it the element name as follows:

Transform:
<customFieldValue name="cust_1">Custom Field Value 1</customFieldValue>
<customFieldValue name="cust_2">Custom Field Value 2</customFieldValue>

To:
<cust_1>Custom Field Value 1</cust_1>
<cust_2>Custom Field Value 2</cust_2>

<xsl:template match="customFieldValue"> <xsl:element name="{@name}"> <xsl:apply-templates/> </xsl:element> </xsl:template>

J.Pietschmann


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




_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail



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.