diff options
author | William Harrington <kb0iic@berzerkula.org> | 2014-11-27 16:29:31 -0600 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2014-11-27 16:29:31 -0600 |
commit | 7df987a652b93d55dd8eca363706d3bacc469b55 (patch) | |
tree | 17f84ce0fee76a3a0476b714eae09486ab2470e6 /stylesheets/lfs-xsl/docbook-xsl-snapshot/profiling/.svn/text-base/strip-attributes.xsl.svn-base |
Diffstat (limited to 'stylesheets/lfs-xsl/docbook-xsl-snapshot/profiling/.svn/text-base/strip-attributes.xsl.svn-base')
-rw-r--r-- | stylesheets/lfs-xsl/docbook-xsl-snapshot/profiling/.svn/text-base/strip-attributes.xsl.svn-base | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-snapshot/profiling/.svn/text-base/strip-attributes.xsl.svn-base b/stylesheets/lfs-xsl/docbook-xsl-snapshot/profiling/.svn/text-base/strip-attributes.xsl.svn-base new file mode 100644 index 0000000..d6f55fb --- /dev/null +++ b/stylesheets/lfs-xsl/docbook-xsl-snapshot/profiling/.svn/text-base/strip-attributes.xsl.svn-base @@ -0,0 +1,27 @@ +<?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> |