Next in thread →
Next in month →
Re: [docbook] exercise tag
Melanie Rösch wrote:
> Is there a way to deal with, whithout changing the DTD?
I do it this way:
<simplesect>
<title>Exercises</title>
<qandaset defaultlabel="number">
<qandaentry>
<question><para>What is 1+1?</para></question>
<answer><para>2</para></answer>
</qandaentry>
<qandaentry>
<question><para>What is 2+2?</para></question>
<answer><para>4</para></answer>
</qandaentry>
</qandaset>
</simplesect>
And tweak the stylesheets like this:
<!-- Label question consecutively throughout the document -->
<xsl:template match="question" mode="label.markup">
<xsl:text>Exercise </xsl:text><xsl:number level="any"
count="qandaentry" format="1"/>
</xsl:template>
Joachim
--
Joachim Ziegler Stuhlsatzenhausweg 85
Max-Planck-Institut für Informatik 66123 Saarbrücken, Germany
Email: Tel.: (+49) 0681 9325-127
Next in thread →
Next in month →