Jump to content

XSLT to add new element


Ngopal

Recommended Posts

Hi,I am having the XML like below. <table id="ch1tbl1"> <tgroup cols="3" > <th colspan="3">2017 Vocational Truck Carbon Dioxide Standard</th> <th/> <th>EPA CO<span class="span_lc_1">2</span> Emissions (grams/ton/mile)</th> <th>NHTSA Gallons/1,000 miles/ton</th> <td><b>Light Heavy-Duty Class 2 – 5</b></td> <td>36.7</td> <td>21.8</td> </tgroup> </table>I want to change it to following:

<table id="ch1tbl1"> <tgroup cols="3" > <thead> <th colspan="3">2017 Vocational Truck Carbon Dioxide Standard</th> <th/> <th>EPA CO<span class="span_lc_1">2</span> Emissions (grams/ton/mile)</th> <th>NHTSA Gallons/1,000 miles/ton</th> </thead> <tbody> <td><b>Light Heavy-Duty Class 2 – 5</b></td> <td>36.7</td> <td>21.8</td> </tbody> </tgroup> </table>Can anyone help me on this.Thanks,Gopal

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...