Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: anyAttribute ##other?

From: "Zafar Abbas" <zafara@---------.--->
To: "thomas smith" <smith_thomas_@-------.--->, <xmlschema-dev@--.--->
Date: 8/12/2004 5:00:00 AM
##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@w... [mailto:xmlschema-dev-request@w...]
On Behalf Of thomas smith
Sent: Thursday, August 12, 2004 8: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
McAfee(r) 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963




From zafara@m... Thu Aug 12 19:18:26 2004
Received: from dr-nick.w3.org ([18.29


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent