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

Re: Broken tables

Subject: Re: Broken tables
From: felix@xxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 27 Jun 2000 15:04:49 +0200
felix ati
On Tue, Jun 27, 2000 at 11:13:21AM +0100, Pawson, David wrote:
> I have an SGML document I'm converting to xml,
> and I'm having trouble with the tables :-)
> 
> Each table row, instead of tagging up the cell data,
> tags up the seperators!
> 
> E.g.
> 
> <TABROW><TT>ati</TT><COLSEP>ATI</TABROW>
> <TABROW><TT>r128</TT><COLSEP>ATI Rage 128</TABROW>
Well, this is not well-formed xml. You can easily  convert it into
well-formed xml with sed.
cat brokenxml.sgml | sed -e s-\<COLSEP\>-\</COLSEP\>\<COLSEP\>- \
-e s-\<TABROW\>-\<TABROW\>\<COLSEP\>-\
-e s-\</TABROW\>-\</COLSEP\>\<TABROW\>- > wellformed.xml

After that you can apply your xslt-templates :)

hth
 Felix


 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.