Sha256: 89c470e825ed5d588d2b9313d9ce1271bfbacf03a483bbd867efefe598e6119f

Contents?: true

Size: 712 Bytes

Versions: 20

Compression:

Stored size: 712 Bytes

Contents

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">

<xsl:output method="xml"/>

<xsl:param name="attributes" select="''"/>

<xsl:variable name="strip-attributes"
              select="concat(' ', normalize-space($attributes), ' ')"/>

<xsl:template match="@*|text()|comment()|processing-instruction()">
  <xsl:copy/>
</xsl:template>

<xsl:template match="*">
  <xsl:copy>
    <xsl:for-each select="@*">
      <xsl:if test="not(contains($strip-attributes, concat(' ',name(.),' ')))">
        <xsl:copy-of select="."/>
      </xsl:if>
    </xsl:for-each>
    <xsl:apply-templates select="node()"/>
  </xsl:copy>
</xsl:template>

</xsl:stylesheet>

Version data entries

20 entries across 20 versions & 5 rubygems

Version Path
git-scribe-qp-0.1.1 docbook-xsl/profiling/strip-attributes.xsl
couchbase-git-scribe-0.1.1.2 docbook-xsl/profiling/strip-attributes.xsl
couchbase-git-scribe-0.1.1.1 docbook-xsl/profiling/strip-attributes.xsl
booky-0.0.4 lib/stylesheets/profiling/strip-attributes.xsl
booky-0.0.3 lib/stylesheets/profiling/strip-attributes.xsl
booky-0.0.2 lib/stylesheets/profiling/strip-attributes.xsl
booky-0.0.1 lib/stylesheets/profiling/strip-attributes.xsl
git-scribe-0.1.1 docbook-xsl/profiling/strip-attributes.xsl
git-scribe-0.1.0 docbook-xsl/profiling/strip-attributes.xsl
bookshop-0.0.4 lib/bookshop/generators/bookshop/app/tools/xsl/1.76.1/profiling/strip-attributes.xsl
bookshop-0.0.3 lib/bookshop/generators/bookshop/app/tools/xsl/1.76.1/profiling/strip-attributes.xsl
git-scribe-0.0.9 docbook-xsl/profiling/strip-attributes.xsl
git-scribe-0.0.8 docbook-xsl/profiling/strip-attributes.xsl
git-scribe-0.0.7 docbook-xsl/profiling/strip-attributes.xsl
git-scribe-0.0.6 docbook-xsl/profiling/strip-attributes.xsl
git-scribe-0.0.5 docbook-xsl/profiling/strip-attributes.xsl
git-scribe-0.0.4 docbook-xsl/profiling/strip-attributes.xsl
bookshop-0.0.2.1 lib/bookshop/generators/bookshop/project/tools/xsl/1.76.1/profiling/strip-attributes.xsl
bookshop-0.0.2 lib/bookshop/generators/bookshop/project/tools/xsl/1.76.1/profiling/strip-attributes.xsl
bookshop-0.0.1 lib/bookshop/generators/bookshop/project/tools/xsl/1.76.1/profiling/strip-attributes.xsl