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

RE: anyAttribute

  • From: dmaze@u...
  • To: Brad Harper <brad.harper@e...>
  • Date: Wed, 2 May 2007 17:51:49 -0400

RE:  anyAttribute

It means that you can put any attribute into the schema document itself -- provided (namespace="##other") that those attributes are in neither the null namespace nor XML Schema's namespace.  In the example you gave your "extra" attributes are in the null namespace, so that's invalid.

(And as Michael Kay pointed out, putting extension attributes into the schema itself doesn't have any effect on the validation process unless the validator somehow knows about them; it won't cause the attribute to appear in the validated document, for example.)

David Maze
Engineer, IBM WebSphere DataPower SOA Appliances
One Rogers Street, Cambridge, MA 02142
Phone: 617-693-1306  Fax: 617-693-5541



From: Brad Harper <brad.harper@e...>
To: xml-dev <xml-dev@l...>
Date: 05/02/2007 05:37 PM
Subject: RE: anyAttribute





Thanks.

So the fact that <anyAttribute> appears in the W3 XMLSchema's schema
doesn't mean that an arbitrary attribute of my own making may be
introduced into a schema conforming to the W3 schema.

If I placed <anyAttrbute> in *my* schema, I would expect that instance
documents would be able to contain attributes that aren't explicitly
defined by my schema.

I'd expect the same to be true for my schema, which is merely an
instance document of the W3 schema.

Brad

> -----Original Message-----
> From: Michael Kay [mailto:mike@s...]
> Sent: Wednesday, May 02, 2007 4:21 PM
> To: Brad Harper; 'xml-dev'
> Subject: RE: anyAttribute
>
> >
> > Have I mis-interpreted the schema schema?
> >
>
> Yes. You can add your own attributes to elements in a schema,
> but they don't mean anything unless you write a schema
> processor that attaches meaning to them. They certainly
> aren't equivalent to adding an <xs:anyAttribute> element to a
> complex type definition.
>
> Michael Kay
> http://www.saxonica.com/
>
>
>
>

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@l...
subscribe: xml-dev-subscribe@l...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php




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


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.