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

Fw: Converting to different format

Subject: Fw: Converting to different format
From: J_Eugene_Bernard/VML/IT/SGCORP/SANMAR@xxxxxxxxxxxxxxx
Date: Sun, 22 Aug 2004 15:10:46 +0530
fw file
 Hi all,

 Since i have not clearly communicated my problem in my earlier post,
 i am reposting my problem with xml file..
 I am having an XML file (File 1) as given below.
 I need to create an output XML of "N" such files of structure 
 similer to File 2
 (where N is number of record Node in the xml file 1. in this case 4 such 
files)
 
 If anybody posts complete xslt codes will be greatly appreciated.
 since i am a newbie to xslt.

------------------------------------------
 File 1:
<?xml version="1.0" ?>
<assets>
<record>
<system>1</system> 
<asset>a001</asset>
<serial>a01</serial>
<make>HP</make>
<vendor>abc</vendor>
</record>

<record>
<system>2</system> 
<asset>a002</asset>
<serial>a02</serial>
<make>HP</make>
<vendor>abc</vendor>
</record>

<record>
<system>3</system> 
<asset>a003</asset>
<serial>a03</serial>
<make>HP</make>
<vendor>abc</vendor>
</record>

<record>
<system>4</system> 
<asset>a004</asset>
<serial>a04</serial>
<make>HP</make>
<vendor>abc</vendor>
</record>
</assets>
--------------------------------------------- 
 File 2:

<?xml version="1.0" ?>
<assets>
<record>
<desc>
system
</desc>
<detail>
1
</detail>

</record>

<record>
<desc>
asset
</desc>
<detail>
a001
</detail>

</record>
<record>
<desc>
serial
</desc>
<detail>
a01
</detail>
</record>
<record>
<desc>
make
</desc>
<detail>
HP
</detail>
</record>
<record>
<desc>
vendor
</desc>
<detail>
abc
</detail>
</record>
</assets> 


Regards
Eugene

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.