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

Quick, Easy Namespace Question

  • To: xml-dev@l...
  • Subject: Quick, Easy Namespace Question
  • From: "CHIUSANO, Joseph" <JCHIUSANO@l...>
  • Date: Mon, 5 Aug 2002 15:33:15 -0400
  • Return-receipt-to: "CHIUSANO, Joseph" <JCHIUSANO@l...>

Quick
Title: Quick, Easy Namespace Question

I thought I had all of this namespace stuff down pat...then I tried something new.

I'm not sure if it's my schema/XML document or the tool that's the problem.

Here's what I've done in the schema:

(1) I have declared a target namespace with a namespace prefix ("abc" for our purposes here)

(2) I have a global declaration of an element "MyElement1", which is a complex type

(3) I also have a local declaration of "MyElement1", because this second declaration has a different set of subelements; in the local declaration, I have not namespace-qualified the element name as it would clash with the global declaration.  This is the only local element in the schema.

(4) I've set elementFormDefault to "qualified"

I realized that I could not have a default namespace in the XML instance document, because the XML processor would consider both "MyELement1" elements as belonging to the same target namespace, and an error would result due to the clash in declarations.  Therefore, in the XML instance document, I have namespace-prefixed all elements _except the locally declared "MyElement1"_.

The tool I am using doesn't like this - is there something that I'm not seeing?

TIA,
Joe Chiusano
LMI

**************************************************************************
  Joseph M. Chiusano
  Logistics Management Institute
  2000 Corporate Ridge
  McLean, VA 22102
  Email: jchiusano@l...
  Tel: 571.633.7722
**************************************************************************



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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.