W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2009

Restricted element content

From: Ladislav Vitásek <vity@vity.cz>
Date: Wed, 11 Mar 2009 19:57:56 +0100
To: <xmlschema-dev@w3.org>
Message-ID: <3CED78F512604425A0A8C6FA99614D9E@stroj>
Hello,
I have very simple question, but I cannot find a solution for this.
I would like to create XSD, which would describe following piece of XML:
<foo atr1="some restricted attribute">
  --limited string length (or eg. positive integer)-- 
  <bar1 />
  <bar2 />
</foo>

=element with an attribute which contains restricted content and other
elements. 

I have no problem to describe the XML without "bar" elements, but it seems
to have no solution with them.

Thanks in advance.

-Vity
Received on Thursday, 12 March 2009 12:26:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:15:11 GMT