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

Replacing values

Subject: Replacing values
From: "vijay kumar" <reddy_vk@xxxxxxxxxxx>
Date: Tue, 17 Jul 2001 15:25:26 -0000
replace value in xml file
Hi,
  I need to generate the following XML file from another XML file.

<?xml version="1.0" standalone="no"?>
<!-- <!DOCTYPE validation PUBLIC "-//manu//TEXT//KARMA Validation Attributes
DTD//EN" "http://www.manu.com/dtd/validation/model.dtd"> -->
<model class="com.manu.cro.online.ui.booking.BookingForm">
<attribute name="rate" value="2.343a"/>
<attribute name="cityCode" value="ZRaF"/>
<attribute name="awbNumber" value="08a5-12345678"/>
<attribute name="fromDate" value="27/0a3/2001 00:00"/>
<attribute name="origin" value="ZRHa"/>
<attribute name="spco1" value="DIaP"/>
<attribute name="shipperCustomerReferenceNumber" value="12345a"/>
</model>

  My question is how to write XSL file which reads values from another xml
file and replaces the values in the above xml file. I am using xalan.
Say in this line( <attribute name="rate" value="2.343a"/> ) it has to
replace the value with value from another xml file.
Thanking you in advance
reddy vk



_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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.