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

Can an element's QName value be without a prefix?

From: Costello, Roger L. <costello@mitre.org>
Date: Mon, 12 Mar 2012 22:28:14 +0000
To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Message-ID: <B5FEE00B53CF054AA8439027E8FE17751822D606@IMCMBX04.MITRE.ORG>
Can an element's QName value be without a prefix?
Hi Folks,

Suppose an element is declared to be of type QName:

<element name="example" type="QName" /> 

In an instance document, can the value of <example> be without a namespace prefix:

<example>Hello</example> 

If yes, then what is the namespace URI for Hello?

Suppose I declare a default namespace:

<document xmlns="http://www.example.org">
      <example>Hello</example> 
</document>

Is Hello in the http://www.example.org namespace?

/Roger
Received on Monday, 12 March 2012 22:28:42 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

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.