Hi Bob,
these are great news, thank you. I tried using
the xhtml5 stylesheets.
Unfortunately I receive an error
message. I tried with Saxon9 and Saxon6.5.5
Here is the
error message for Saxon9:
[xslt]
/home/vogella/workspace/docu/de.vogella.docbook/docbook-xsl-1.76.1/xhtml5/html5-element-mods.xsl:456:
Fatal Error! Cannot find a matching 1-argument function named {
http://exslt.org/common}node-set(). There is no
Saxon extension function with the local name
node-set
Here is the error message for
Saxon6.5.5
[xslt] Loading stylesheet
/home/vogella/workspace/docu/de.vogella.docbook/docbook-xsl-1.76.1/xhtml5/docbook.xsl
[xslt] Failed to process null
BUILD
FAILED
/home/vogella/workspace/docu/de.vogella.docs/buildhtml5.xml:535:
javax.xml.transform.TransformerConfigurationException:
java.net.MalformedURLException: no protocol:
../common/entities.ent
Here is the Apache Ant file which
I'm using for the transformation:
<target name="build-html5" depends="xinclude"
description="Generates HTML5 files from DocBook
XML">
<xslt
style="${myhtml.stylesheet}" extension=".html"
basedir="${output.tmp}"
destdir="${article.dir}">
<include
name="**/*article.xml" />
<param
name="html.stylesheet" _expression_="${stylesheet}"
/>
<param name="section.autolabel" _expression_="1"
/>
<param name="make.valid.html" _expression_="1"
/>
<param name="html.cleanup" _expression_="1"
/>
<param name="chunker.output.encoding" _expression_="UTF-8"
/>
<outputproperty name="indent" value="yes"
/>
<classpath refid="saxon.class.path" />
</xslt>
<!-- Copy the stylesheet to the top level
directory-->
<copy
todir="${article.dir}/..">
<fileset
dir="lib">
<include
name="styles.css" />
</fileset>
</copy>
</target>
The same conversion works fine using the
existing html or xhtml stylesheets.
Best regards,
Lars
2011/9/17 Bob Stayton
<bobs@sagehill.net>
I've got the DocBook XSL stylesheet for
generating HTML5 output and EPUB3 books working, at least to
beta level. If you are interested in trying it out, you
can download the files from the DocBook SourceForge Files area,
under the EPUB3 folder
https://sourceforge.net/projects/docbook/files/epub3/
It
currently consists of two directories that are added to an
existing docbook-xsl-1.76.1 installation, adding "xhtml5" and
"epub3" directories. They are actually customizations of
the xhtml stylesheets, and contain relative path references to
those files, so they should be installed in parallel with the
xhtml directory. At some point I will incorporate them
into the normal build so they can appear in a regular
docbook-xsl-snapshot.
Each directory includes a README
file to give you more information about how to use the
stylesheets and test your output. Feedback is
welcome.
The stylesheets include support for some of the
new EPUB features, such as video, audio, and MathML.
However, not all EPUB browsers are up to handling them.
See the README for details.
Bob Stayton
Sagehill
Enterprises
bobs@sagehill.net
---------------------------------------------------------------------
To
unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For
additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
--
Lars
http://www.vogella.de - Eclipse, Android and
Java Tutorials
http://www.twitter.com/vogella - Lars on
Twitter