This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
empty xhtml namespace in some elements usingdb-xsl-1.48/xhtml
- From: Steffen Maier <Steffen dot Maier at studserv dot uni-stuttgart dot de>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 30 Jan 2002 16:14:36 +0100
- Subject: DOCBOOK-APPS: empty xhtml namespace in some elements usingdb-xsl-1.48/xhtml
Hello,
using db-xsl-1.48/xhtml/chunk.xsl with saxon 6.5 and the appended
stylesheet driver I receive some of the result elements with an empty
default namespace declaration which leads in turn to "invalid" xhtml. I
only stumbled over it because I wondered why Mozilla (0.9.6) suddenly
didn't format ToC, tables and some headers incorrectly now that I switched
to the new xhtml stylesheets.
First I thought it was because of the imports/includes from ../common as
they are not transformed for xhtml. But I couldn't find any reference to
xhtml literal result elements nor xsl:element nor xsl:attribute sweeping
over the relevant common xslts. Any idea where the errors comes from?
An example xhtml output can be seen here:
http://w3studi.informatik.uni-stuttgart.de/~maiersn/cs/apps/pine/studi/index.xhtml
Besides that problem, I'm again (positively, of course) surprised by
Norm's meta-xslt ;-). Generating the xhtml backend from html using xslt is
really so nice.
Steffen.
--
http://w3studi.informatik.uni-stuttgart.de/~maiersn/
mailto:Steffen.Maier@studserv.uni-stuttgart.de
==========
my driver (please inform me if (valid!) document source is also needed)):
==========
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
version='1.0'>
<xsl:import href="file:/d:/usr/share/sgml/dbxsl148/xhtml/chunk.xsl"/>
<xsl:param name="my.time.stamp">$Date: 2001/05/18 12:37:43 steffen$</xsl:param>
<!-- DOCBOOK PARAMETERS: -->
<xsl:param name="base.dir" select="'xhtml/'"/><!--trailing slash!-->
<xsl:param name="html.ext" select="'.xhtml'"/>
<xsl:param name="css.decoration" doc:type="boolean">1</xsl:param>
<xsl:param name="use.id.as.filename" select="'1'" doc:type="boolean"/>
<xsl:param name="use.extensions" select="'1'" doc:type="boolean"/>
<xsl:param name="show.revisionflag" doc:type="boolean">1</xsl:param>
<!-- <xsl:param name="section.autolabel" select="1" doc:type="boolean"/> -->
<xsl:param name="toc.section.depth" doc:type="integer" doc:min="1" doc:max="10">3</xsl:param>
<xsl:param name="generate.book.toc" select="1" doc:type="boolean"/>
<xsl:param name="generate.division.toc" select="1" doc:type="boolean"/>
<xsl:param name="generate.index" select="1" doc:type="boolean"/>
<xsl:param name="make.valid.html" select="1"/>
<!-- it's defined in website/homepage/head/style so we don't need it here
<xsl:param name="html.stylesheet" select="'example.css'" doc:type="string"/>
<xsl:param name="html.stylesheet.type" doc:type="string">text/css</xsl:param>
-->
<!-- <xsl:param name="suppress.navigation" doc:type="boolean">1</xsl:param> -->
<xsl:param name="admon.graphics" select="1" doc:type="boolean"/>
<xsl:param name="admon.graphics.path" doc:type="string">./</xsl:param>
<xsl:param name="admon.graphics.extension" select="'.png'" doc:type="string"/>
<!--
<xsl:param name="admon.style" doc:type="string">
<xsl:text>margin-left: 0.5in; margin-right: 0.5in;</xsl:text>
</xsl:param>
-->
<xsl:attribute-set name="body.attrs">
<!-- green on black vt-emu
<xsl:attribute name="bgcolor">black</xsl:attribute>
<xsl:attribute name="text">#00F000</xsl:attribute>
<xsl:attribute name="link">#0000FF</xsl:attribute>
<xsl:attribute name="vlink">#840084</xsl:attribute>
<xsl:attribute name="alink">#0000FF</xsl:attribute>
-->
<!-- black on nearly-white -->
<xsl:attribute name="bgcolor">#F0F0F0</xsl:attribute>
<xsl:attribute name="text">black</xsl:attribute>
</xsl:attribute-set>
</xsl:stylesheet>
<!--
Local variables:
mode: xml
time-stamp-start: "\\$Date: \\\\?"
time-stamp-end: "\\\\?\\$"
time-stamp-format: "%:y/%02m/%02d %02H:%02M:%02S %u"
sgml-omittag:nil
sgml-shorttag:nil
sgml-namecase-general:nil
sgml-general-insert-case:lower
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:2
sgml-indent-data:nil
sgml-parent-document:nil
End:
-->