[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Change Namespace of element and children
Hi Kevin,
If you declare the namespace as a default namespace in your stylesheet, then it will be used for all unprefixed element names, whether you use xsl:element or a literal result element. So you'd want this: <xsl:stylesheet ... xmlns="http://www.mystuff.com"> The bottom line is that the element has to be associated with the namespace you want wherever it appears in the stylesheet. There is no way to dynamically alter the namespace of elements you add, just because you add them inside an element with a different namespace (which is essentially what you were trying to do). Hope this helps, Evan Kevin L. Cobb wrote: Hi All, new to the list but not new to XSLT.
|
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
|