Subject: RE: [xsl] adding attribute to copy From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Thu, 26 Sep 2002 11:54:54 +0100 |
> > 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@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] adding attribute to copy, Sascha Aßbach | Thread | RE: [xsl] adding attribute to copy, Jarno . Elovirta |
RE: [xsl] Problems rendering nbsp e, Michael Kay | Date | RE: [xsl] adding attribute to copy, Michael Kay |
Month |