![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - RE: unhandled cos-all-limited 1.2 >Thread Next - FW: Complex type restriction question Any element with specific attributes and childrenTo: <xmlschema-dev@--.---> Date: 10/11/2005 5:21:00 PM Hi,
I am trying to use the <any> element, but with specific attributes and
specific children. I'd like to demonstrate this by using a RelaxNG
Compact definition:
----------------------
start = myRoot
myRoot = element MyRoot
{
myRootChild *
}
myRootChild = element *
{
myRootChildAttributes
, myRootChildChildren
}
myRootChildAttributes =
(
attribute attr1 {string}
, attribute attr2 {string}
)
myRootChildChildren =
(
specificElement *
)
specificElement = element Specific
{
myRootChild *
}
----------------------
The <any> element in the XML Schema looks as follows
----------------------
<xs:group name="myRootChild">
<xs:sequence>
<xs:any processContents="skip"/>
</xs:sequence>
</xs:group>
----------------------
I am unable to specify that the <any> element must contain certain
specific attributes (attr1 and attr2) and certain children (Specific).
Is this possible at all in XML Schema?
Regards,
Metin Solmaz
#########################################################################=
############
This e-mail message has been scanned for Viruses and Content and cleared =
by NetIQ MailMarshal
#########################################################################=
############
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
