From: Miller, M. D (Rosetta) <Michael_Miller@Rosettabio.com> - 2006-06-30 14:31:14
|
Hi Jason and Valerie, > Beyond what Michael said, it is an *error* not to reference the > DOCTYPE in a MAGE-ML file.=20 I think the issue is that this is prefectly valid: <!DOCTYPE MAGE-ML SYSTEM "MAGE-ML.dtd"> But anyone who does this should still be admonished to change their ways. > Michael, isn't this a 100% backwards compatible idea that would make > life easier for people? Is this change possible? I mean clearly the > version that we distribute from the MGED site could be modified, but > can the *official* version at the OMG be modified like this? It is definitely 100% backwards compatible, since it is just a comment. Unfortunately, even a minor change like this takes a process at OMG. In practice, I don't think this is has been a huge issue, it is rare that I've seen a DOCTYPE where the dtd isn't qualified by the version directory, and, although it is ugly and inelegant, in the resolveEntity() method one can look for the elements that require one or the other DTD and/or special case to look for who produced the document and map to the correct DTD. In fact, can the MAGEstk parser be updated to do the first option in resolveEntity()? In those documents that don't have the two non-backwards compatible elements, the document is valid for either DTD. A grep could answer 1.0 or 1.1. cheers, Michael > -----Original Message----- > From: mge...@li...=20 > [mailto:mge...@li...] On Behalf Of=20 > Jason Stewart > Sent: Friday, June 30, 2006 4:20 AM > To: Valerie Wagner > Cc: mge...@li... > Subject: Re: [Mged-mage] Versions of MAGE and MAGE-ML >=20 >=20 > Hi Valerie, >=20 > On 6/29/06, Valerie Wagner <val...@sr...> wrote: > > > > Hello folks, > > > > We are currently working on integrating MAGE into the BioWarehouse > > (relational bioinformatics database). > > > > I have a few questions about the versions of MAGE and MAGE-ML: > > > > 1. I don't see any element or attribute in MAGE-ML that=20 > would indicate > > which version the XML instance is (1.0 or 1.1), other than=20 > if the XML > > file happens to reference a MAGE-ML DTD with a version=20 > number in it. Is > > there any simple way to determine which version of MAGE-ML=20 > a given XML > > file is? > > >=20 > Beyond what Michael said, it is an *error* not to reference the > DOCTYPE in a MAGE-ML file. The entire purpose of creating the DTD was > so that people like yourselves can validate what they get - without > the DOCTYPE there can be no validation. >=20 > > 2. Similarly, I don't see any indicate in the MAGE-ML.DTD=20 > document that > > indicates what version it is. I've see both version 1.0=20 > and 1.1 of the > > DTD given the same name "MAGE-ML.dtd" and I don't see any=20 > comment inside > > these files that indicates which version they are. =20 > Shouldn't at least a > > comment be added to the DTDs to indicate what version they are? > > Preferably, the XML files would also indicate which version=20 > of MAGE-ML > > they are. > > >=20 > Michael, isn't this a 100% backwards compatible idea that would make > life easier for people? Is this change possible? I mean clearly the > version that we distribute from the MGED site could be modified, but > can the *official* version at the OMG be modified like this? >=20 > Cheers, jas. >=20 > Using Tomcat but need to do more? Need to support web=20 > services, security? > Get stuff done quickly with pre-integrated technology to make=20 > your job easier > Download IBM WebSphere Application Server v.1.0.1 based on=20 > Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057& dat=3D121642 _______________________________________________ Mged-mage mailing list Mge...@li... https://lists.sourceforge.net/lists/listinfo/mged-mage |