<xsl:when test="$object/@xml:id">
<xsl:value-of select="$object/@xml:id"/>
</xsl:when>
+ <xsl:when test="$generate.consistent.ids != 0">
+ <!-- Make $object the current node -->
+ <xsl:for-each select="$object">
+ <xsl:text>id-</xsl:text>
+ <xsl:number level="multiple" count="*"/>
+ </xsl:for-each>
+ </xsl:when>
<xsl:otherwise>
<xsl:value-of select="generate-id($object)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
- <xsl:variable name="prevlist"
- select="$list/preceding::orderedlist[1]"/>
+ <!-- match on previous list at same nesting level -->
+ <xsl:variable name="prevlist"
+ select="$list/preceding::orderedlist
+ [count($list/ancestor::orderedlist) = count(ancestor::orderedlist)][1]"/>
<xsl:choose>
<xsl:when test="count($prevlist) = 0">2</xsl:when>
<xsl:otherwise>
<!ENTITY callout.properties SYSTEM "../params/callout.properties.xml">
<!ENTITY calloutlist.properties SYSTEM "../params/calloutlist.properties.xml">
<!ENTITY task.properties SYSTEM "../params/task.properties.xml">
+<!ENTITY generate.consistent.ids SYSTEM "../params/generate.consistent.ids.xml">
&monospace.verbatim.font.width;
&exsl.node.set.available;
&bookmarks.collapse;
+&generate.consistent.ids;
</reference>
<reference xml:id="graphics"><title>Graphics</title>
&graphic.default.extension;
<src:fragref linkend="funcsynopsis.decoration.frag"/>
<src:fragref linkend="funcsynopsis.style.frag"/>
<src:fragref linkend="function.parens.frag"/>
+<src:fragref linkend="generate.consistent.ids.frag"/>
<src:fragref linkend="generate.index.frag"/>
<src:fragref linkend="generate.section.toc.level.frag"/>
<src:fragref linkend="generate.toc.frag"/>
<!ENTITY generate.css.header SYSTEM "../params/generate.css.header.xml">
<!ENTITY make.clean.html SYSTEM "../params/make.clean.html.xml">
<!ENTITY custom.css.source SYSTEM "../params/custom.css.source.xml">
+<!ENTITY generate.consistent.ids SYSTEM "../params/generate.consistent.ids.xml">
&draft.mode;
&draft.watermark.image;
&generate.id.attributes;
+&generate.consistent.ids;
&generate.meta.abstract;
&make.clean.html;
&docbook.css.source;
<src:fragref linkend="funcsynopsis.decoration.frag"/>
<src:fragref linkend="funcsynopsis.style.frag"/>
<src:fragref linkend="function.parens.frag"/>
+<src:fragref linkend="generate.consistent.ids.frag"/>
<src:fragref linkend="generate.css.header.frag"/>
<src:fragref linkend="generate.id.attributes.frag"/>
<src:fragref linkend="generate.index.frag"/>