[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: adding attribute to copy

Subject: RE: adding attribute to copy
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 26 Sep 2002 11:54:54 +0100
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.