Subject: Re: Broken tables From: Eric van der Vlist <vdv@xxxxxxxxxxxx> Date: Tue, 27 Jun 2000 14:03:58 +0200 |
"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> > > I'm almost convinced that it has to be a 'broken' solution, > can anyone suggest anything that might be cleaner. Since it's not well formed XML, I don't see how you can rely only on XML tools... The only "non well formness" seems to be the unclosed <COLSEP> though. You could use any text processing tool (including perl ;) to either suppress <COLSEP> or replace it with <COLSEP/> and then process it through something like : <xsl:template match="TABROW"> <row> <entry><xsl:value-of select="TT"/></entry> <entry><xsl:value-of select="."/></entry> </row> </xsl:template> Not that clean, but not that dirty either ;) Eric > Target is docbook > > <table> > <title>None</title> > <tgroup cols="2"> > <tbody> > <row> > <entry>ati</entry> > <entry>ATI</entry> > </row> > <row> > <entry>r128</entry> > <entry>ATI Rage 128</entry> > </row> > </tbody> > </tgroup> > </table> > > Fuller example of SGML below. > Any help appreciated. > Regards, DaveP > > <TABLE ALIGN="CENTER" BORDER="1"> > <TABULAR CA="|l|l|"> > <TABROW>Driver Name<COLSEP> > <TABROW> > <TT>apm</TT><COLSEP>Alliance Pro Motion</TABROW> > <TABROW><TT>ati</TT><COLSEP>ATI</TABROW> > <TABROW><TT>chips</TT><COLSEP>Chips & Technologies</TABROW> > <TABROW><TT>cirrus</TT><COLSEP>Cirrus Logic</TABROW> > <TABROW><TT>cyrix</TT> (*)<COLSEP>Cyrix MediaGX</TABROW> > <TABROW><TT>fbdev</TT><COLSEP>Linux fbdev</TABROW> > <TABROW><TT>glide</TT><COLSEP>Glide2x (3Dfx)</TABROW> > <TABROW><TT>glint</TT><COLSEP>3Dlabs, TI</TABROW> > <TABROW><TT>i740</TT><COLSEP>Intel i740</TABROW> > <TABROW><TT>i810</TT><COLSEP>Intel i810</TABROW> > <TABROW><TT>mga</TT><COLSEP>Matrox</TABROW> > <TABROW><TT>neomagic</TT><COLSEP>NeoMagic</TABROW> > <TABROW><TT>nv</TT><COLSEP>NVIDIA</TABROW> > <TABROW><TT>r128</TT><COLSEP>ATI Rage 128</TABROW> > <TABROW><TT>rendition</TT><COLSEP>Rendition</TABROW> > <TABROW><TT>s3virge</TT><COLSEP>S3 ViRGE</TABROW> > <TABROW><TT>sis</TT><COLSEP>SiS</TABROW> > <TABROW><TT>tdfx</TT><COLSEP>3Dfx</TABROW> > <TABROW><TT>tga</TT><COLSEP>DEC TGA</TABROW> > <TABROW><TT>trident</TT><COLSEP>Trident</TABROW> > <TABROW><TT>tseng</TT><COLSEP>Tseng Labs</TABROW> > <TABROW><TT>vga</TT><COLSEP>Generic VGA</TABROW> > </TABULAR> > </TABLE> > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list -- ------------------------------------------------------------------------ Eric van der Vlist Dyomedea http://dyomedea.com http://xmlfr.org http://4xt.org http://ducotede.com ------------------------------------------------------------------------ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Broken tables, Pawson, David | Thread | Re: Broken tables, David Carlisle |
RE: whitespaces inside empty tags, Pawson, David | Date | Re: Broken tables, David Carlisle |
Month |