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

Re: empty namespace declaration being generated

Subject: Re: empty namespace declaration being generated
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 23 Jan 2007 23:01:09 GMT
Re:  empty namespace declaration being generated
> Has anyone seen anything like this before? 
yes that's why it's in the faq. You haven't shown the part of your
output that is causing the xmlns="".  You have generated an element in
no-namespace with local name security.

You have (presumably) generated a parent element in some other
namespace so xslt has to add the xmlns="".

<security name="ibm" />

is security in no-namespace

but
<foo xmlns="zzz">
<security name="ibm" />
</foo>
would be security in namespace zzz  so in order to output secutity in
no-namespace the system has to output

<foo xmlns="zzz">
<security xmlns="" name="ibm" />
</foo>

to preserve the (no-)namespace of security.

De[ending on hat you want, you should either generate the parent element
in no-namespace to make

<foo>
<security name="ibm" />
</foo>

or generate security in a namespace, to make

<foo xmlns="zzz">
<security name="ibm" />
</foo>

David

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.