[Home] [By Thread] [By Date] [Recent Entries]

  • From: Brad Harper <brad.harper@e...>
  • To: xml-dev <xml-dev@l...>
  • Date: Wed, 2 May 2007 16:14:34 -0500

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]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member