Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Enumerated complex types

From: "Michael Kay" <mike@--------.--->
To: "'Guillaume Lebleu'" <gl@---------.--->
Date: 12/20/2007 10:21:00 AM
> Perhaps you could expand on how you see the assert approach 
> with external XML file as you described could work for code assist.

That's certainly an interesting challenge, and in general it's true that
predicate logic is too powerful to be reverse-engineered in this kind of
way. There may however be stereotype patterns that can be recognized to
extract a list of valid values from an assertion.

However, I'm not entirely convinced that syntax-directed editing is the
ultimate user interface, or that we should develop XML Schema in the
direction of making it into a user-interface definition language. I'd like
to see advances in tools like XForms to allow a more customized interface
for XML authoring.

Michael Kay
http://www.saxonica.com/

> 
> My idea was something like:
> 
> <xs:complexType name="GenericStatus_Type">
>    <xs:sequence>
>       <xs:element name="StatusCode" type="xs:string"/>
>       <xs:element name="Severity" type="xs:string" minOccurs="0"/>
>       <xs:element name="Desc" type="xs:string" minOccurs="0"/>
>    </xs:sequence>
> </xs:complexType>
> 
> <xs:complexType name="Status_Type">
>     <xs:restriction base="GenericStatus_Type">
>        <xs:enumeration>
>           <ifx:StatusCode>100</ifx:StatusCode>
>           <ifx:Status>Error</ifx:Status>
>           <ifx:Desc>General Error</ifx:Desc>
>        </xs:enumeration>
>     </xs:restriction>
> </xs:complexType>
> 
> The Status_Type could be also part of a separate xs:include 
> xsd file that can be easily updated dynamically given an XML 
> document containing the code list. Code assist would be quite 
> easy too.
> 
> Guillaume


From andrew.j.welch@g... Thu Dec 20 10:23:45 2007
Received: from aji.w3.org ([133.


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent