This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: adding attribute to copy


> 
> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]