]> granicus.if.org Git - docbook-dsssl/commitdiff
Support startref on indexterm
authorNorman Walsh <ndw@nwalsh.com>
Fri, 17 Feb 2006 14:39:02 +0000 (14:39 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Fri, 17 Feb 2006 14:39:02 +0000 (14:39 +0000)
docbook/relaxng/tools/doc2dtd.xsl

index d0237ee9a14fa2b13bf04d776987a0cdfea949bd..1cbb60b8026683877c027766284af96c3a6aa753 100644 (file)
 <xsl:template match="rng:attribute" mode="attributes">
   <xsl:param name="override" select="0"/>
 
+  <xsl:if test="ancestor::rng:define[1]/@name = 'db.indexterm.singular'
+               and @name = 'zone'">
+    <!-- hack; force the startref attribute to be there... -->
+    <dtd:attribute name="startref" occurs="optional" type="IDREF"/>
+  </xsl:if>
+
   <xsl:choose>
     <xsl:when test="$override = 0">
       <xsl:choose>