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@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format