<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:wsp="http://schemas.microsoft.com/office/word/2003/wordml/sp2">

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

<xsl:template match="*">
	<xsl:copy>
		<xsl:for-each select="@*">
			<xsl:if test="not(starts-with(substring-after(name(), ':'),'rsid'))">
				<xsl:copy-of select="."/>
			</xsl:if>
		</xsl:for-each>
		<xsl:apply-templates select="node()"/>
	</xsl:copy>
</xsl:template>

<!-- nuke anything that is .*:rsid.* -->
<xsl:template match="node()[starts-with(substring-after(name(), ':'),'rsid')]"/>

</xsl:stylesheet>
