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

Newbie needs XSLT to generate specified output

Subject: Newbie needs XSLT to generate specified output
From: Shailendra majmundar <smaj@xxxxxxxxxxx>
Date: Tue, 25 Jul 2000 21:11:19 -0700
xslt output xml
For given billing.xml and address.xml, I need xslt to get output.xml.

Many thanks in advance!

========= billing.xml ==================

<?xml version="1.0" ?>
<!-- billing.xml -->

 <customer _name="test1">
   <current_charges>
     <phone_no>999-999-9999</phone_no>
     <local_calls>344</local_calls>
     <unit_price>0.05</unit_price>
     <line_charge>1000</line_charge>
     <ATT_units>101</ATT_units>
     <ATT_unit_price> 0.17 </ATT_unit_price>
     <misc_taxes> 5.95 </misc_taxes>
   </current_charges>
 </customer_name >

======== address.xml ===================
<?xml version="1.0"?>
<!--address.xml -->
<customer_name="test1">
  <street1> 999 Main St. #200 </street>
  <street2> </street2>
  <city> San Francisco </city>
  <state> CA </state>
  <country> USA </country>
</customer_name>

<phone_no="999-999-9999">
  <service_type> Plan_A </service_type>
  <provider> ATT</provider>
</phone_no>

========= output.xml ==================
<?xml version="1.0"?>
<!--output.xml -->
<customer_name="test1">
  <!--address information -->
  <street1> 999 Main St. #200 </street>
  <street2> </street2>
  <city> San Francisco </city>
  <state> CA </state>
  <country> USA </country>

  <current_charges>
    <phone_no>999-999-9999</phone_no>
    <service_type> Plan_A </service_type>
    <provider> ATT</provider>
    <local_calls>344</local_calls>
    <unit_price>0.05</unit_price>
    <line_charge>1000</line_charge>
    <ATT_units>101</ATT_units>
    <ATT_unit_price> 0.17 </ATT_unit_price>
    <misc_taxes> 5.95 </misc_taxes>
  </current_charges>

</customer_name>



 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.