This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Broken tables


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]