Sorry, I should have tested that before posting. Indeed, it is more
complicated because the qandaset is formatted with a layout table in
HTML output. I think that template will need to be rewritten, so I
don't have a quick fix for you.
Bob Stayton
Sagehill Enterprises
b...@sagehill.net
On 11/22/2018 4:40 AM, ttl wrote:
On Wed, Nov 21, 2018 at 04:56:17PM -0800, Bob Stayton wrote:
<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.
Thank you for your reply!
But it seems, that it didn't solve the problem. Eg. with this little document:
<?xml version="1.0" encoding="utf-8"?>
<topic xmlns='http://docbook.org/ns/docbook'
xmlns:xlink="http://www.w3.org/1999/xlink"
version="5.0">
<title>Title allowed in qandaentry.</title>
<qandaset defaultlabel='qanda'>
<qandaentry><title>This title is the first child of an qandaentry
element</title>
<question><para>Q</para></question>
<answer><para>A</para></answer>
</qandaentry>
</qandaset>
</topic>
With unmodified stylesheet I get the following browser output
Title allowed in qandaentry.
Q: This title is the first child of an qandaentry element
<title>This title is the first child of an qandaentry element</title>
Q: Q
A: A
and with the customized stylesheet, except that there are no title tags visible
the output is the same and it looks wrong to me.
Thank you and with best regards
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org