[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: 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: ziegler@mpi-sb.mpg.de Tel.: (+49) 0681 9325-127
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]