OASIS Open Document Format for Office Applications (OpenDocument) TC

 View Only

xml:id proposal and validation

  • 1.  xml:id proposal and validation

    Posted 08-06-2008 09:48
    Dear TC members,
    
    as a follow-up of Monday's TC call I would like to clarify what the
    situation of the xml:id[1] proposal is regarding validation with jing 
    and msv.
    
    I have updated the Wiki page[1] for the proposal with some information
    regarding validation with jing and msv, and have also corrected a small
    error in my explanations. I had stated that the RNG DTD Compatibility 
    specification[2] does not allow to have two attributes of type ID at a 
    single element. This is wrong. RNG DTD Compatibility seems to allow 
    this, but only XML 1.0 DTDs seem not to allow this. This however has not 
    impact on the proposal itself or its rationale.
    
    To summarize what I have written in the proposal itself: The proposal
    does not change the situation regarding validation with jing and msv. In
    particular, it does not resolve the errors that are reported by jing if
    it is used without -i option, that is, with RNG DTD Compatibility
    enabled. It also does not really change the validation of the ID 
    semantics, because both validators seem not to support xml-id. jing 
    validates ID semantics only in the DTD compatibility mode. Since this 
    mode cannot be used with ODF, jing in practice will not validate IDs.
    
    MSV always validates ID semantics for all attributes of type ID, 
    regardless which data type library used. That means, it did validate ID 
    semantics although ODF currently does not require that, and it will 
    continue to do so.
    
    Best regards
    
    Michael
    
    [1] http://wiki.oasis-open.org/office/proposal%3Axml-id
    [2] http://www.oasis-open.org/committees/relax-ng/compatibility.html
    -- 
    Michael Brauer, Technical Architect Software Engineering
    StarOffice/OpenOffice.org
    Sun Microsystems GmbH             Nagelsweg 55
    D-20097 Hamburg, Germany          michael.brauer@sun.com
    http://sun.com/staroffice         +49 40 23646 500
    http://blogs.sun.com/GullFOSS
    
    Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1,
    	   D-85551 Kirchheim-Heimstetten
    Amtsgericht Muenchen: HRB 161028
    Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
    Vorsitzender des Aufsichtsrates: Martin Haering