Can anyone point me at what I might be doing wrong.
I am using an identity template with matches to copy this some xml but
remove certain attributes.
I'm having trouble dealing with a couple of attributes that have
My source xml includes an element as follows :
Using this XSL template :
successfully removes the xsi:noNamespaceSchemaLocation attribute.
Ie the result is
However, if I have
<xsl:template match="@*[local-name()='xsi']" />
It has no effect on the xmlns:xsi attribute, which remains in the
I've also tried
<xsl:template match="@xsi" />
Also with no effect.
Looking at the Namespaces page on D Pawson's XSL FAQ I tried adding
To the xsl:stylesheet element and using
<xsl:template match="@mytest:xsi" />
As the match. This also has no effect, the xmlns:xsi attribute remains
in the output.
I may well be failing to understand something about namespaces.
Is the xmlns namespace perhaps handled differently ?
Can anyone tell me what I'm doing wrong or advise a solution ?
Colledia Control Engineer
Siemens IT Solutions and Services Ltd
Room 457 Design Building, BBC Television Centre, Wood Lane, London, W12
T: +44 (0)20 82259063 F: +44 (0)20 8576 8182 M: +44 (0)7921 244993
This e-mail contains confidential information and is for the exclusive
use of the addressee/s. If you are not the addressee, then any
distribution, copying or use of this e-mail is prohibited. If received
in error, please advise the sender and delete it immediately. We accept
no liability for any loss or damage suffered by any person arising from
use of this e-mail.
Siemens IT Solutions and Services Limited
Registered No: 1203466 England
Registered Office: Faraday House, Sir William Siemens Square, Frimley,
Camberley, GU16 8QD
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>