This combination of elements appears to have been missed in the
stylesheets. Apparently it isn't commonly used or it would have been
reported before now. I'll file an issue to get it fixed for the next
release.
You can add support to a customization layer by adding this template:
<xsl:template match="d:qandaentry/d:title">
<xsl:call-template name="block.object"/>
</xsl:template>
That will create a nested div with attribute class="title" inside the
div for qandaentry, and then you can add a new CSS entry to your
stylesheet to format it.
Bob Stayton
Sagehill Enterprises
[email protected]
On 11/21/2018 4:31 PM, ttl wrote:
Hello,
I have a title element as first child in a qandaentry element, this
should be allowed
(https://tdg.docbook.org/tdg/5.0/qandaentry.html) but saxon gives me the
following output:
[xslt] Element title in namespace 'http://docbook.org/ns/docbook'
encountered in qandaentry, but no template matches.
and the resulting *.html looks wrong. I'm using this stylesheet:
docbook-xsl-1.79.2\html\docbook.xsl
I also get this warning
[xslt] <absolute path>\docbook-xsl-1.79.2\common\utility.xsl:9:31:
Warning! Stylesheet module <absolute
path>/docbook-xsl-1.79.2/common/utility.xsl
is included or imported more than once. This is permitted, but may
lead to errors or unexpected behavior
and that's my ant target
<xslt basedir="${basedir}/bugs" destdir="${basedir}/bugs"
extension=".html"
style="${style}/html/docbook.xsl"
classpath="${saxon.dir}\saxon9he.jar;${resolver.dir}\resolver.jar">
<include name="*.xml" />
<factory name="net.sf.saxon.TransformerFactoryImpl" />
</xslt>
I've no clue what could be wrong.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]