W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2004

RE: anyAttribute ##other?

From: Zafar Abbas <zafara@microsoft.com>
Date: Thu, 12 Aug 2004 11:59:42 -0700
Message-ID: <563BD3496D37BB4B9F4E8F896A58F2B30238BC50@RED-MSG-50.redmond.corp.microsoft.com>
To: "thomas smith" <smith_thomas_@hotmail.com>, <xmlschema-dev@w3.org>

##other should work for you. The Xml Schema Errata clarified [1] that it
does not allow unqualified components.

[1] http://www.w3.org/2001/05/xmlschema-errata#E0-10

-----Original Message-----
From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org]
On Behalf Of thomas smith
Sent: Thursday, August 12, 2004 8:48 AM
To: xmlschema-dev@w3.org
Subject: anyAttribute ##other?

hi all,

I have a question with respect to anyAttribute functionality. Consider
following XML excerpt

<?xml version="1.0" encoding="UTF-8"?>
<object xmlns="urn:foo:ob" xmlns:it="urn:foo:it" 
<item param="value1" it:test="value2"/>

now, my schema needs to express/restrict that

1. the item element (in the urn:foo:ob NS) has a required attribute
(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
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

Is your PC infected? Get a FREE online computer virus scan from
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
Received on Thursday, 12 August 2004 19:00:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:23 UTC