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

Re: Broken tables

Subject: Re: Broken tables
From: Eric van der Vlist <vdv@xxxxxxxxxxxx>
Date: Tue, 27 Jun 2000 14:03:58 +0200
broken tables
"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 &amp; 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

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.