OASIS Emergency Management TC

  • 1.  Schema Test Results

    Posted 07-16-2004 21:54
     MHonArc v2.5.0b2 -->
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    emergency message

    [Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


    Subject: Schema Test Results


    Thanks Art,
    
    Using the XSD file from the document, Here's the run-through:
    
    1. Microsoft .NET DOM and Borland DOM fail on all <simpletype name=nnn>
    fields. Since simpletype is nested within <element name=nnn> it inherits
    the name and thus <simpletype name=nnn> should simply read <simpletype>
    -- the name is already declared. So elements must be named, but nested
    element simpletypes not (where the name is identical).
    
    The .NET / Microsoft DOM parsers will validate the spec with the above
    modification.
    
    2. I have had some older DOM parsers still cough up blood (Borland XML
    Mapper for C++Builder and friends is one). They can be repaired by
    changing:
    
    <simpleType>
    <list itemType = "string"/>
    </simpleType>
    
    to:
    
    <simpleType>
    <restriction base = "string"/>
    </simpleType>
    
    One reason could be that these incorrectly parse the XPath absolutely
    instead of relatively. Since there are simpletypes nested within
    complextypes and complextype by w3c definition cannot contain a list
    item, these fail.
    
    Many parsers translate the list itemtype to a string, so this is still
    valid if the user deals with the list of data in the space-delimited
    format that list is defined as, post-DOM/Xpath/whatever-parsing.
    
    These should be put into errata or such, since there are a lot of people
    using these tools (both the .net and the older dom parsers simply
    because production systems don't run on the latest and greatest parsers
    available) and not using 'loose' DOM parsers.
    
    These both probably need some discussion.
    
    Cheers
    Kon
    
    >