This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
[docbook] Help needed on XSL
- From: damar thapa <damar at netvigator dot com>
- To: docbook at lists dot oasis-open dot org
- Date: Thu, 01 May 2003 21:22:31 +0800
- Subject: [docbook] Help needed on XSL
- References: <Pine.LNX.4.44.0304261225090.31688-100000@dell> <5.2.0.9.2.20030430165521.00b14550@pop3.Nildram.co.uk> <200305010910.h419Aft15530@janning.planwerk6.local>
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