Id-to-xml-id.xslt



         WARNING: deleting the existing xml:id= attribute of &lt; id=>.  <xsl:element name="{name(.)}"> <xsl:attribute name="xml:id"> <xsl:value-of select="@id"/> </xsl:attribute> <xsl:copy-of select="attribute::*[not(name='id') and not(name='xml:id')]"/> <xsl:apply-templates select="./*|./text|./processing-instruction|./comment"/> </xsl:element> </xsl:template> </xsl:stylesheet>