Re: @name|name
Eric van der Vlist <[email protected]>
| Newsgroups | gmane.text.xml.relaxng.general |
|---|---|
| Organization | Dyomedea (http://dyomedea.com) |
| Message-ID | <1067889377.5887.525.camel@delleric> |
On Mon, 2003-11-03 at 20:43, David Tolpin wrote:
> Hi,
>
> If an element node has both ./@name and ./name, is it an error or are they combined?
If you mean a pattern element, it's an error, but you can explicitly
combine two name name classes through a "choice", for instance:
<element>
<choice>
<name>foo</name>
<name>bar</name>
</choice>
<empty/>
</element>
Eric
--
Read me on XMLhack.
http://xmlhack.com/author.php?id=8
Upcoming schema tutorial:
- Philadelphia (7/12/2003) http://makeashorterlink.com/?V28612FC5
Tutoriel XSLT:
- Paris (25/11/2003) http://makeashorterlink.com/?L2C623FC5
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------