Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - anyAttribute ##other? [Thread Next] RE: anyAttribute ##other?To: "'thomas smith'" <smith_thomas_@-------.--->, <xmlschema-dev@--.---> Date: 8/12/2004 10:20:00 AM Hi Thomas, Actually, ##other _does_ require the matching attribute(s) to be in a namespace. The original XML Schema rec was contradictory, but an erratum [1] corrected it. Hope that helps, Priscilla ----------------------------------------------------- Priscilla Walmsley priscilla@w... Author, Definitive XML Schema (Prentice Hall PTR) ----------------------------------------------------- [1] http://www.w3.org/2001/05/xmlschema-errata#e1-11 > -----Original Message----- > From: xmlschema-dev-request@w... > [mailto:xmlschema-dev-request@w...] On Behalf Of thomas smith > Sent: Thursday, August 12, 2004 11:48 AM > To: xmlschema-dev@w... > Subject: anyAttribute ##other? > > > hi all, > > I have a question with respect to anyAttribute functionality. > Consider the > following XML excerpt > > <?xml version="1.0" encoding="UTF-8"?> > <object xmlns="urn:foo:ob" xmlns:it="urn:foo:it" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > ..... > <item param="value1" it:test="value2"/> > ..... > </object> > > now, my schema needs to express/restrict that > > 1. the item element (in the urn:foo:ob NS) has a required > attribute param > (no NS prefix required). > > 2. the item element (in the urn:foo:ob NS) can have multiple optional > attributes (anyAttribute) from a NS other than urn:foo:ob. > These attributes > must have a NS prefix. > > Note that using anyAttribute="##other" is not sufficient, as > this still > allows to add attributes without NS prefix. > > can someone help me ahead with this problem? > many thanks > thomas > > _________________________________________________________________ > Is your PC infected? Get a FREE online computer virus scan > from McAfeeR > Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > > From francislang@r... Fri Aug 13 10:14:05 2004 Received: from dr-nick.w3.org ([18. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
