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

Re: Namespace questions

Subject: Re: Namespace questions
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Fri, 29 Dec 2000 23:22:55 -0800 (PST)
 Re: Namespace questions
Ayelet,

You can get rid of the namespace declaration on the child nodes by
adding the following to your xsl:stylesheet element:

xmlns:m="B" exclude-result-prefixes="m"

Then you'll get in your output:

<A1>something </A1><A2 att="att1">something </A2>

However, the top element(s) that declare the namespace will still be
copied with the namespace declaration. So, the result of processing
your fragment will look like this:

<m:A xmlns:m="B"><A1>something </A1><A2 att="att1">something
</A2></m:A>


Obviously, you must have a separate template that matches all
m:yourNames elements you'd like to copy without the namespace
declaration on them. Then in this template use xsl:element and
xsl:attribute and specify the local-name().

Dimitre.

Ayelet Kotzer wrote:


(Desired) Output:
   <A >
        <A1>something </A1>
         <A2  att="att1>something </A2>
    </A>

What I got is something like this:
<A1   xmlns:m="B">something </A1>
  <A2  xmlns:m="B"  att="att1 >something </A2>




__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

 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.