![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - xs:choice and xs:sequence question [Thread Next] Re: xs:choice and xs:sequence questionTo: d_a_carver@-----.--- Date: 1/12/2006 9:52:00 AM
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
David Carver writes:
> [complex type defn]
Either you have a very old version of XSV, or you've changed the
example in some way before sending it. . .
XSV 2.10 reports 4 errors for your example : one for each element decl
in the 2nd sequence, because you're not allowed both 'ref' and 'type'
attributes, and one for the content model as a whole, because it
violates UPA.
> What I want to do is require DescriptionMessage, MeassageReasonCode if
> there is an ApplicationReasonCode, if there isn't an
> ApplicationReasonCode, then DescriptionMessage and MessageReasonCode
> are optional.
I don't _think_ there's a way to do that, given that you want ARC to
come last . . . The closest I can get is
(DM+, MR, ARC?)?
which differs from your requirement in not allowing DM w/o MR or MR
w/o DM (but _maybe_ you didn't want to allow that anyway -- I could
read your description either way).
Hope this helps.
ht
=2D --
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@i...
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged sp=
am]
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFDxiaskjnJixAXWBoRAnCIAJ0f1TqUcXpH9UDU73rrOQDP9/goLQCeJ6NP
y0ucfE2ncY8YcaR9utmW7eo=
=IFtP
=2D----END PGP SIGNATURE-----
From ht@i... Thu Jan 12 09:54:27 2006
Received: from lisa.w3.org ([128.30.52. | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
