xsl-list
[Top] [All Lists]

Re: [xsl] Processing Stylesheet with multiple namespaces

2007-09-22 13:28:22
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--