Format for auto ids.
Posted: Tue Aug 25, 2009 9:22 pm
I am looking at the auto generation of xml:id attribute in DocBook 5. The only documented variables for "ID Pattern" are ${localName} and ${uuid}. Is these more supported variables?
I am shooting for something like:
so my xml will be like
I am shooting for something like:
Code: Select all
${localName}.${elemPosition}
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rng" type="xml"?>
<book xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0">
<chapter xml:id="chapter.1">
<title>Chapter Title</title>
<subtitle>Subtitle of Chapter</subtitle>
<sect1>
<title>Section1 Title</title>
<subtitle>Subtitle of Section 1</subtitle>
<para>Text</para>
</sect1>
</chapter>
<chapter xml:id="chapter.2">
<title>Chapter Title</title>
<subtitle>Subtitle of Chapter</subtitle>
<sect1>
<title>Section1 Title</title>
<subtitle>Subtitle of Section 1</subtitle>
<para>Text</para>
</sect1>
</chapter>
</book>