Thanks Abel,
that's what I ended up with. So far it works.
The stylesheets that implicitly operate on "o" prefix
leave behind the elements and attributes from that
namespace. I know it is crooked but.....
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="w:object">
<w:pict>
<xsl:apply-templates/>
<xsl:apply-templates select="v:shape" mode="k"/>
</w:pict>
</xsl:template>
<xsl:template match="v:shape" mode="k">
<v:shape>
<xsl:attribute name="id">
<xsl:value-of select="@id"/>
</xsl:attribute>
<xsl:attribute name="type">
<xsl:value-of select="@type"/>
</xsl:attribute>
<xsl:attribute name="style">
<xsl:value-of select="@style"/>
</xsl:attribute>
<xsl:apply-templates/>
</v:shape>
</xsl:template>
<xsl:template match="v:shape"/>
<xsl:template
match="//*[local-name()='OLEObject']"/>
---------Original Message ----------
Date: Sat, 22 Sep 2007 22:26:51 +0200
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
From: Abel Braaksma <abel(_dot_)online(_at_)xs4all(_dot_)nl>
Subject: Re: [xsl] Processing Stylesheet with multiple
namespaces
Message-ID: <46F57A8B(_dot_)6050900(_at_)xs4all(_dot_)nl>
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
____________________________________________________________________________________
Got a little couch potato?
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
--~------------------------------------------------------------------
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>
--~--