This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: adding attribute to copy
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 26 Sep 2002 11:54:54 +0100
- Subject: RE: [xsl] adding attribute to copy
- Reply-to: xsl-list at lists dot mulberrytech dot com
>
> Hi there,
>
> i need an XSL stylesheet that transforms an XML input so that
> there ist he same output
> only one attribute has to be added to one element called
> <richtext> it is the attribute xmlns=”...” so taht it says
> <richtext xmlns=””> in the output-
>
> how can i do that?
Your question is almost unparseable - adding punctuation takes only a
few seconds, so if you want free help from people, why not make their
life a bit easier?
xmlns="" is not an attribute in the XPath data model. It will be output
by the XSLT serializer if an element has a namespace node for the
default namespace that is different from the default namespace of its
parent element. So you need to read the spec very carefully and
understand how namespace nodes work.
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list