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

removing unecessary attributes

Subject: removing unecessary attributes
From: Andreas Peter <info@xxxxxxxxxx>
Date: Tue, 01 Apr 2008 19:26:38 +0200
 removing unecessary attributes
Hello list-users,

I have the following file. The problems are the missing quotes for the attributes values and
I need to remove all of the attributes.


<table>
<tr class=xl33 height=17 style='height:12.75pt'>
 <td height=17 class=xl37 style='height:12.75pt'>*00.09.1939</td>
 <td class=xl37>&nbsp;</td>
 <td class=xl38>KM<span style="mso-spacerun: yes"> </span>111</td>
 <td class=xl39 x:num>42</td>
 <td class=xl40 x:num>412</td>
 <td colspan=2 class=xl40 style='mso-ignore:colspan'>&nbsp;</td>
 <td class=xl40>Tender</td>
 <td class=xl40>&nbsp;</td>
 <td class=xl40>PL</td>
 <td class=xl40>&nbsp;</td>
 <td colspan=5 class=xl39 style='mso-ignore:colspan'>&nbsp;</td>
 <td class=xl38>Hela</td>
 <td class=xl39>&nbsp;</td>
 <td colspan=238 class=xl33 style='mso-ignore:colspan'>&nbsp;</td>
</tr>
</table>

I know how to copy the tree and so on but the problems are the missing quotes.
I get the error message "Open quote is expected for attribute "class" associated with an element type "tr".


Using XSLT is it possible to create an output like the follownig?

<table>
<tr>
 <td>*00.09.1939</td>
 <td>&nbsp;</td>
 <td>KM 111</td>
 <td>42</td>
 <td>412</td>
 <td>&nbsp;</td>
 <td>Tender</td>
 <td>&nbsp;</td>
 <td>PL</td>
 <td>&nbsp;</td>
 <td>&nbsp;</td>
 <td>Hela</td>
 <td>&nbsp;</td>
 <td>&nbsp;</td>
</tr>
</table>

Thanks for every hint,
Andreas

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.