Commits

btingle committed 17f8c7c

saxon warning The child axis starting at an attribute() node will never select anything;
backport to standalone

  • Participants
  • Parent commits 2f74913
  • Branches bct-ead-fixes

Comments (0)

Files changed (1)

File style/textIndexer/ead/at2oac.xsl

 <xsl:template match="@*">
   <xsl:choose>
     <xsl:when test="$namespace!=''">
-      <xsl:copy>
-        <xsl:apply-templates select="@*|node()" mode="at2oac"/>
-      </xsl:copy>
+      <xsl:copy/>
     </xsl:when>
     <xsl:otherwise>
       <xsl:attribute name="{local-name()}">
   <xsl:choose>
     <xsl:when test="$namespace!=''">
       <!-- keep the @xlink: attributes if we are not nuking namespaces -->
-      <xsl:copy>
-        <xsl:apply-templates select="@*|node()" mode="at2oac"/>
-      </xsl:copy>
+      <xsl:copy/>
     </xsl:when>
     <xsl:otherwise>
       <xsl:attribute name='linktype'>
   <xsl:choose>
     <xsl:when test="$namespace!=''">
       <!-- keep the @xlink: attributes if we are not nuking namespaces -->
-      <xsl:copy>
-        <xsl:apply-templates select="@*|node()" mode="at2oac"/>
-      </xsl:copy>
+      <xsl:copy/>
     </xsl:when>
     <xsl:otherwise>
       <!-- hack @xlink: attributes to be EAD 2002 DTD link attributes -->
 <xsl:template match="@xsi:*" mode="at2oac">
   <xsl:choose>
     <xsl:when test="$namespace!=''">
-      <xsl:copy>
-        <xsl:apply-templates select="@*|node()" mode="at2oac"/>
-      </xsl:copy>
+      <xsl:copy/>
     </xsl:when>
     <xsl:otherwise/>
   </xsl:choose>