Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - RE: Online validator: '[', ']', and '-' freely accepted in patterns >Thread Next - XML Schema Validation From: Debora Vanni <debora.vanni@------.---> To: xmlschema-dev@--.--- Date: 1/10/2007 1:46:00 PM
Hi!
Is there a way to have a schema that allow an element to have a certain
number of attributes without defining them? I better explain:
<foo attr1 = "34" attr2 = 245">
[...]
</foo>
or
<foo attr5 = "3pp">
[...]
</foo>
are ok, but I don't know and I don't want to care about names and types
of attributes.
So the schema would be
<xs:element name="foo">
<xs:complexType>
<xs:all>
[...]
</xs:all>
<AnyKindOfAttributes>
</xs:complexType>
</xs:element>
I know that there is
<xs:anyAttribute/>
but it's not ok because you must define attributes somewhere, and I don't know nothing about them.
I just want to make sure that the element "foo" exists and it is of a complex type described by [...], but I just know that
it will have some attributes I don't know how many and which.
Thanks
Debora
--
Debora Vanni - TVBLOB S.r.l.
Software Engineer
debora.vanni@t...
________________________________________________________________________
TVBLOB srl
A new way to communicate ...thru your TV!
Via G. Paisiello, 9 - 20131 Milano, Italia
T: +39 02 3656 2440
F: +39 02 2040 8347
www.tvblob.com
From mike@s... Wed Jan 10 14:12:33 2007
Received: from aji.w3.org ( | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
