This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: [docbook] Help needed on XSL
Something strange is going on with your setup. Despite the
table having the wrong cols value, I am able to process a
file with that table using Saxon 6.5.2, using either the
straight docbook.xsl stylesheet or your customization.
Can you post a complete (short) file that illustrates
the problem?
Can you provide more details of your system?
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com
On Fri, May 02, 2003 at 12:08:27AM +0800, damar thapa
wrote:
> Hi,
>
> It is me again.
>
> When I try the conversion with docbook.xsl directly, I got the same
> result. I means it is either the problem of docbook.xsl itself or my xml
> structure. As a newbie, I assume it is my xml structure. The following
> is my table structure that is causing the problem:
>
> <table>
> <title></title>
>
> <tgroup cols="2">
> <tbody>
> <row>
> <entry>File Type</entry>
>
> <entry>Owner attributes</entry>
>
> <entry>Group attributes</entry>
>
> <entry>Other atributes</entry>
> </row>
>
> <row>
> <entry>-</entry>
>
> <entry>rw-</entry>
>
> <entry>rw-</entry>
>
> <entry>r--</entry>
> </row>
> </tbody>
> </tgroup>
>
> </table>
>
> Is my table structure correct?
>
> Thanks,
>
> Damar
>
> damar thapa wrote:
>
> > Hi,
> >
> > I have the following xsl file:
> >
> > <?xml version="1.0" encoding="iso-8859-1"?>
> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > version="1.0">
> >
> > <xsl:import href="/usr/local/docbook-xsl-1.60.1/html/docbook.xsl"/>
> >
> > <xsl:param name="htmlID"/>
> >
> > <xsl:template match="/">
> > <html id="{$htmlID}">
> > <head>
> > <title>testing only</title>
> > </head>
> > <body>
> > <table id="mainText" width="100%">
> > <tbody>
> > <tr>
> > <td class="leftPadding">
> > <xsl:apply-templates/>
> > </td>
> > </tr>
> >
> > </tbody>
> > </table> </body>
> > </html>
> > </xsl:template>
> >
> > <!-- This is to remove horizontal line above the title -->
> > <xsl:template name="article.titlepage.separator">
> > </xsl:template>
> >
> > </xsl:stylesheet>
> >
> >
> > What I am trying to do is:
> > (1) Insert the value of $htmlID to html id
> > (2) Create a table with the id value of "mainText"
> > (3) Convert docbook xml into html that goes inside the above table.
> >
> > The above xsl is doing fine in simple document's case (sect1, para,
> > list etc), but in the case of documents with table/s inside, process
> > goes on and on.
> > I am using saxon, and as Michael Kay, the creator of saxon, suggested,
> > my xsl seems on a loop.
> >
> > Is there any thing wrong with my xsl file?
> >
> > Any help would be highly appreciated.
> >
> > Damar
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
> > For additional commands, e-mail: docbook-help@lists.oasis-open.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-help@lists.oasis-open.org
>
>
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-help@lists.oasis-open.org