This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Newbie needs XSLT to generate specified output
- To: XSL-List at mulberrytech dot com
- Subject: Newbie needs XSLT to generate specified output
- From: Shailendra majmundar <smaj at Zambeel dot com>
- Date: Tue, 25 Jul 2000 21:11:19 -0700
- Reply-To: xsl-list at mulberrytech dot com
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