]> granicus.if.org Git - docbook-dsssl/commitdiff
Move annotations
authorNorman Walsh <ndw@nwalsh.com>
Tue, 12 Jul 2005 18:43:52 +0000 (18:43 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Tue, 12 Jul 2005 18:43:52 +0000 (18:43 +0000)
docbook/relaxng/tools/removedoc.xsl

index ef3fab398b46ae00d54dde36e2f69c1d1d4de55b..4830dbe8f70f805b55a9d0fa4631b8dc918de120 100644 (file)
 <xsl:template match="rng:element">
   <xsl:copy>
     <xsl:copy-of select="@*"/>
-    <xsl:apply-templates/>
-
     <xsl:if test="ancestor::rng:div/db:refpurpose">
       <xsl:element name="a:documentation">
        <xsl:value-of select="ancestor::rng:div/db:refpurpose"/>
       </xsl:element>
     </xsl:if>
+    <xsl:apply-templates/>
   </xsl:copy>
 </xsl:template>
 
 <xsl:template match="rng:attribute">
   <xsl:copy>
     <xsl:copy-of select="@*"/>
-    <xsl:apply-templates/>
-
     <xsl:if test="db:refpurpose">
       <xsl:element name="a:documentation">
        <xsl:value-of select="db:refpurpose"/>
       </xsl:element>
     </xsl:if>
+    <xsl:apply-templates/>
   </xsl:copy>
 </xsl:template>