Re: [xsl] Processing Stylesheet with multiple namespaces

Subject: Re: [xsl] Processing Stylesheet with multiple namespaces
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Sat, 22 Sep 2007 22:26:51 +0200
Michael Daniloff wrote:
But, today I discovered that the source can also
contain o:OLEObject element instead of w:OLEObject

and this of course messes everything up.


You can remove *any* xxx:OLEObject with the following throw-away template:

<xsl:template match="*[local-name(.) = 'OLEObject']" />

Or (but not sure if this was newly added in XSLT 2.0, so try it out, if you get an error use local-name instead)

<xsl:template match="*:OLEObject" />

Or, if you want to be specific:

<xsl:template match="w:OLEObject | o:OLEObject" />


Cheers, -- Abel Braaksma

Current Thread