]> granicus.if.org Git - docbook-dsssl/commitdiff
Don't put EMPTY in a group; added debugging messages (currently commented out)
authorNorman Walsh <ndw@nwalsh.com>
Wed, 5 Apr 2006 14:53:40 +0000 (14:53 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Wed, 5 Apr 2006 14:53:40 +0000 (14:53 +0000)
docbook/relaxng/tools/doc2dtd.xsl

index 1cbb60b8026683877c027766284af96c3a6aa753..280133622a1ceae92ef1a3b9afd06905ea38b792 100644 (file)
     <xsl:when test=".//rng:group|.//rng:choice|.//rng:interleave">
       <xsl:apply-templates mode="content-model"/>
     </xsl:when>
+    <xsl:when test=".//rng:empty">
+      <xsl:apply-templates mode="content-model"/>
+    </xsl:when>
     <xsl:otherwise>
       <dtd:group>
        <xsl:apply-templates mode="content-model"/>
 <!--
   Turn this: (((title|titleabbrev|subtitle)*,info?)|info)
   into this:   (title|titleabbrev|subtitle)*,info?)
+  <xsl:message>
+    <xsl:text>0001 for </xsl:text>
+    <xsl:value-of select="ancestor::rng:define[1]/@name"/>
+  </xsl:message>
 -->
   <xsl:apply-templates select="rng:group" mode="trim"/>
 </xsl:template>
 <!--
   Turn this: (((title|titleabbrev|subtitle)*,info?)|info?)
   into this:   (title|titleabbrev|subtitle)*,info?)
+  <xsl:message>
+    <xsl:text>0002 for </xsl:text>
+    <xsl:value-of select="ancestor::rng:define[1]/@name"/>
+  </xsl:message>
 -->
   <xsl:apply-templates select="rng:group" mode="trim"/>
 </xsl:template>
 <!--
   Turn this: (((title|titleabbrev)*,info?)|info?)
   into this:   (title|titleabbrev)*,info?)
+  <xsl:message>
+    <xsl:text>0003 for </xsl:text>
+    <xsl:value-of select="ancestor::rng:define[1]/@name"/>
+  </xsl:message>
 -->
   <xsl:apply-templates select="rng:group" mode="trim"/>
 </xsl:template>
 <!--
   Turn this: (((title|titleabbrev)*,info?)|info?)
   into this:   (title|titleabbrev)*,info?)
+  <xsl:message>
+    <xsl:text>0004 for </xsl:text>
+    <xsl:value-of select="ancestor::rng:define[1]/@name"/>
+  </xsl:message>
 -->
   <xsl:apply-templates select="rng:group" mode="trim"/>
 </xsl:template>
 <!--
   Turn this: (((title|titleabbrev)*,info?)|info?)
   into this:   (title|titleabbrev)*,info?)
+  <xsl:message>
+    <xsl:text>0005 for </xsl:text>
+    <xsl:value-of select="ancestor::rng:define[1]/@name"/>
+  </xsl:message>
 -->
   <xsl:apply-templates select="rng:group" mode="trim"/>
 </xsl:template>