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

Re: Broken tables

Subject: Re: Broken tables
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 27 Jun 2000 13:18:22 +0100 (BST)
select colsep
something like this?

<TABLE ALIGN="CENTER" BORDER="1">
<TABULAR CA="|l|l|">
<TABROW>Driver Name<COLSEP/></TABROW>
<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:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0"
                >

<xsl:output method="xml" indent="yes"/>

<xsl:template match="TABULAR">
<tbody>
<xsl:apply-templates/>
</tbody>
</xsl:template>

<xsl:template match="TABROW">
<row>
<xsl:call-template name="entry"/>
</row>
</xsl:template>

<xsl:template match="TT">
<tt>
<xsl:apply-templates/>
</tt>
</xsl:template>

<xsl:template name="entry">
<xsl:param name="x" select="0"/>
<entry>
<xsl:apply-templates select="node()[count(preceding-sibling::COLSEP)=$x]"/>
</entry>
<xsl:if test="$x &lt; count(COLSEP)">
<xsl:call-template name="entry">
  <xsl:with-param select="$x+1" name="x"/>
</xsl:call-template>
</xsl:if>
</xsl:template>

</xsl:stylesheet>



<?xml version="1.0" encoding="utf-8"?>

<tbody>
<row>
<entry>Driver Name</entry>
<entry/>
</row>
<row>
<entry>
<tt>apm</tt>
</entry>
<entry>Alliance Pro Motion</entry>
</row>
<row>
<entry>
<tt>ati</tt>
</entry>
<entry>ATI</entry>
</row>
<row>
<entry>
<tt>chips</tt>
</entry>
<entry>Chips &amp; Technologies</entry>
</row>
<row>
<entry>
<tt>cirrus</tt>
</entry>
<entry>Cirrus Logic</entry>
</row>
<row>
<entry>
<tt>cyrix</tt> (*)</entry>
<entry>Cyrix MediaGX</entry>
</row>
<row>
<entry>
<tt>fbdev</tt>
</entry>
<entry>Linux fbdev</entry>
</row>
<row>
<entry>
<tt>glide</tt>
</entry>
<entry>Glide2x (3Dfx)</entry>
</row>
<row>
<entry>
<tt>glint</tt>
</entry>
<entry>3Dlabs, TI</entry>
</row>
<row>
<entry>
<tt>i740</tt>
</entry>
<entry>Intel i740</entry>
</row>
<row>
<entry>
<tt>i810</tt>
</entry>
<entry>Intel i810</entry>
</row>
<row>
<entry>
<tt>mga</tt>
</entry>
<entry>Matrox</entry>
</row>
<row>
<entry>
<tt>neomagic</tt>
</entry>
<entry>NeoMagic</entry>
</row>
<row>
<entry>
<tt>nv</tt>
</entry>
<entry>NVIDIA</entry>
</row>
<row>
<entry>
<tt>r128</tt>
</entry>
<entry>ATI Rage 128</entry>
</row>
<row>
<entry>
<tt>rendition</tt>
</entry>
<entry>Rendition</entry>
</row>
<row>
<entry>
<tt>s3virge</tt>
</entry>
<entry>S3 ViRGE</entry>
</row>
<row>
<entry>
<tt>sis</tt>
</entry>
<entry>SiS</entry>
</row>
<row>
<entry>
<tt>tdfx</tt>
</entry>
<entry>3Dfx</entry>
</row>
<row>
<entry>
<tt>tga</tt>
</entry>
<entry>DEC TGA</entry>
</row>
<row>
<entry>
<tt>trident</tt>
</entry>
<entry>Trident</entry>
</row>
<row>
<entry>
<tt>tseng</tt>
</entry>
<entry>Tseng Labs</entry>
</row>
<row>
<entry>
<tt>vga</tt>
</entry>
<entry>Generic VGA</entry>
</row>
</tbody>


 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.