OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: RE: [docbook-apps] Re: stylesheet customization fails trying to strip a namespace prefix and some unwanted attributes

> -----Original Message-----
> From: Chris Chiasson

> <xsl:for-each 
>       select="@*[namespace-uri()=namespace-uri(parent::self)]">
>  <xsl:copy/>
> </xsl:for-each>

The parent::self thingy must be a mistake. I suppose you really meant
parent::*. But that won't help, because attributes without a prefix will not
be copied. Unprefixed attributes are not in any namespace, and the
namespace-uri() function returns an empty string when applied to such
attribute nodes.

I think that my suggestion


is what you should use. Then all attributes, except those in the Mathematica
namespace, will be copied.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]