Re: omf files that dont validate
- From: James Henstridge <james daa com au>
- To: Malcolm Tredinnick <malcolm commsecure com au>
- Cc: desktop-devel-list gnome org
- Subject: Re: omf files that dont validate
- Date: Fri, 20 Sep 2002 14:16:37 +0800
Malcolm Tredinnick wrote:
Now, I can sympathise with an argument that says the current DTD is a
little inflexible in that it requires the fields to be in a particular
order. Since the data in an OMF file is really just a bag of items, we
should probably allow the tags in any order and that's a backwards
compatible change to the DTD that ships with scrollkeeper. File a bug
against scrollkeeper (at sourceforge) to get remind me to look at that
if you like.
The DTD probably requires the ordering so that it can impose limits on
the number of each element type that can be included. If you wanted to
get rid of the ordering constraint, you need to use something like
(a|b|c|d)* instead of (a,b,c,d), which doesn't protect you against
unwanted repeating elements (eg. it might let an OMF file through with
multiple series ids or something). To get the desired validation
behaviour, you would need schemas or relax-ng.
James.
--
Email: james daa com au | Linux.conf.au http://linux.conf.au/
WWW: http://www.daa.com.au/~james/ | Jan 22-25 Perth, Western Australia.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]