<xsl:template match="/*">
  <xsl:copy-of select="//namespace::*"/>
  <xsl:copy-of select="@*"/>
  <xsl:copy-of select="node()"/>
Michael Kay
-----Original Message-----
From: [] On Behalf Of Ytai Ben-Tsvi
Sent: 12 August 2002 15:42
To: Saxon Help List
Subject: [saxon] compacting xmlns attributes

Does anyone have a ready-made XSLT for minimizing the number of xmlns: attributes on a XML file (by pushing each one of them as ‘high’ in the tree as possible, and merging identical ones)?


I’d love to get one, instead of going through this mess alone. Thanks.


Ytai  Ben-Tsvi

C T I Squared