XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
anyAttribute

Hello:

Per http://www.w3.org/2001/XMLSchema.xsd, it appears that <anyAttribute> 
is valid for most parts of the schema.

I've created a schema for an application of XML; I'd like to refer to my 
own special-use attribute directly within my schema, rather than define 
the attribute to be a child of an element defined by the schema. That 
is, in the .xsd

   <element name="E" classifier="blah" ...>

rather than

   <element name="E" ...>
     <complexType>
       ...
       <attribute name="classifier" ...>

Doing so allows the attribute to appear in the .xsd where it makes more 
sense for the application, rather than in an instance document.

My validator tool is complaining; I've tried introducing this attribute 
at various locations in the schema, including <complexType> and 
<element>.

Have I mis-interpreted the schema schema?

Thanks.

Brad


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS