OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: How to make chemical structure automatically numbered


Hi,

this is for sure not the first instance of numbering chemical structure automatically during docbook transformation for print. But I can not find an example to learn from.

I have the following example (of about 100 structures in my book). I want have these structures numbered with a bold number and automatically. I was told by Thomas Schaitle, this can be done by xsl. In "docbook xsl", I do not find an example. Chemical structures in my book are characterized by property="chemical". What is needed is

  1. make a individual number for each structure
  2. avoid numbering doubly if a structure is shown again
  3. generate the xreflabel with this number that the xref references find a target.

BTW, if I generate an xreflabel by hand then these structures are correctly numbered. However, to be able to change the sequential arrangement of structures and still have the structures labeld sequentially, it is desirable to number them automatically. Please give me an example how to proceed. I have attached the svg file with the structure.

Regards

Bernhard

<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="" class="moz-txt-link-rfc2396E" href="http://docbook.org/xml/5.1/rng/docbook.rng">"http://docbook.org/xml/5.1/rng/docbook.rng" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="" class="moz-txt-link-rfc2396E" href="http://docbook.org/xml/5.1/sch/docbook.sch">"http://docbook.org/xml/5.1/sch/docbook.sch" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<section xmlns="http://docbook.org/ns/docbook"
ÂÂÂ xmlns:xlink="http://www.w3.org/1999/xlink" version="5.1">
ÂÂÂ <title/>
ÂÂÂ <para>polycyclic steran (<xref linkend="chem.steran" role="chem.ref"/>)</para>
ÂÂÂ <table xml:id="Ch06.F.steran" frame="all" rowsep="0" colsep="0" xreflabel="Kap6.F:Steran">
ÂÂÂÂÂÂÂ <title>Sterane Backbone</title>
ÂÂÂÂÂÂÂ <tgroup cols="1" align="center">
ÂÂÂÂÂÂÂÂÂÂÂ <colspec colname="c1" colnum="1" colwidth="4cm" align="center"/>
ÂÂÂÂÂÂÂÂÂÂÂ <tbody>
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ <row>
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ <entry><emphasis role="chemname">Steran</emphasis></entry>
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ </row>
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ <row>
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ <entry><inlinemediaobject property="chemical" xml:id="chem.steran">
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ <imageobject>
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ <imagedata fileref="../bkchem/steran.svg" width="3.8cm"/>
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ </imageobject>
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ </inlinemediaobject></entry>
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ </row>
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ <row>
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ <entry align="right" valign="top"><xref linkend="chem.steran"/></entry>
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ </row>
ÂÂÂÂÂÂÂÂÂÂÂ </tbody>
ÂÂÂÂÂÂÂ </tgroup>
ÂÂÂ </table>
ÂÂÂ
</section>



-- 
spitzhalde9
D-79853 lenzkirch
bernhard.kleine@gmx.net
www.b-kleine.com, www.urseetal.net
-
thunderbird mit enigmail
GPG schlÃssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09

Attachment: steran.svg
Description: image/svg

Attachment: signature.asc
Description: OpenPGP digital signature



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]