[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-j-dev
Subject:    RE: Use of "elementFormDefault"
From:       "Don Smith" <donalds () isogen ! com>
Date:       2001-09-25 14:57:35
[Download RAW message or body]

One qualification:

elementFormDefault and attributFormDefault settings apply only to locally
declared elements and attributes. They do not affect global declarations.

Regards,

Don

Donald Smith
ISOGEN International

-----Original Message-----
From: Matt Loryman [mailto:matt.loryman@viewgate.com]
Sent: Tuesday, September 25, 2001 5:46 AM
To: xerces-j-user@xml.apache.org
Subject: Use of "elementFormDefault"


Hi Terry,

The use of the attributes "elementFormDefault" and "attributeFormDefault" is
described in the XML Schema
primer:

http://www.w3.org/TR/xmlschema-0/

By default schemas assume that documents constrained by them will not have
elements and attributes qualified by namespaces.
In the root of your schema setting the following values for these
attributes:

elementFormDefault="qualified"
attributeFormDefault="qualified"

States that all attributes and elements in a document constrained by the
Schema will be qualified by associating a namespace
with them. Failure to do this will result in the document being found to be
invalid.
Incidentally the namespace specification does not support associating
default namespaces with attributes.

At least thats my understanding of it.....
Hope this helps.

Mat

Matthew Loryman
Development Engineer
Viewgate
165 High Street
Sevenoaks
Kent TN13 1XJ
Phone: +44 1732 466476
http://www.viewgate.com


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic