- <xslt:for-each select="@*">
- <xslt:choose>
- <xslt:when test="local-name()='archived-as' and namespace-uri()='&书社;' and ../ancestor::*[not(self::书社:apply-attributes-to-root or self::书社:apply-attributes)]"/>
- <xslt:otherwise>
- <xslt:apply-templates select="." mode="书社:apply"/>
- </xslt:otherwise>
- </xslt:choose>
- </xslt:for-each>