You could remove all namespaces and then re-apply your stylesheet.
I have used these 2 templates often (and still using them) to clean up my XML files.
<!-- Removing element prefixes -->
<!-- remove element prefix -->
<!-- process attributes -->
<!-- remove attribute prefix -->
<xsl:value-of select="normalize-space(.)" />
On Apr 3, 2012, at 7:50 PM, Eric Lease Morgan wrote:
> Can someone please point me to one or more XSL stylesheets that transform schema-based EAD files into stand-alone HTML files for browsing?
> I have a stylesheet to transform DTD-based EAD files into HTML files. It is a complicated stylesheet, but it works just fine.
> I now have EAD files created against the EAD schema, and my stylesheet does not work against them because of the schema's namespaces. Yes, I could add the namespaces to all of my stylesheet's XPath statements, but that is REALLY laborious and error prone. Again, the original stylesheet is complicated.
> Someone must have already been here. What are some ways y'all transform your schema-based EAD into HTML for reading in a browser?
> Eric Lease Morgan, Digital Projects Librarian
> Hesburgh Libraries, University of Notre Dame
> (574) 631-8604