Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - RE: NewBie Question [Thread Next] Re: NewBie QuestionTo: =?ISO-8859-1?Q?H=E4mmer_Wolfgang?= <Wolfgang.Haemmer@---.---> Date: 6/24/2005 9:49:00 AM
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
H=E4mmer Wolfgang writes:
> I don't know these name in advance.
Another option is to use xsi:type in the instance -- see the XML
Schema Primer, particularly section 4.7 [1] (but you don't want to
make your type abstract). You'll end up with e.g.
<TableDropBanana xsi:type="CommonType">
...
<LocalVariables>...</LocalVariables>
</TableDropBanana>
Ultimate fallback is to use lax validation and give LocalVariables a
top-level declaration, and at least it and its contents will get
validated properly.
ht
[1] http://www.w3.org/TR/xmlschema-0/#abstract
=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)
iD8DBQFCuotGkjnJixAXWBoRAs4BAJ4+2iHlT3lEMFhfR0pT0cIMyo7UIACfX/Dq
tzMWVtQujpdVbNW80MyKPBs=
=a61e
=2D----END PGP SIGNATURE-----
From peter.hendry@c... Thu Jun 23 10:48:13 2005
Received: from wiggu | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
