OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

relax-ng message

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


Subject: [relax-ng] RE: [relax-ng-comment] InstanceToSchema 1.0


Didier Demany wrote:
> I am pleased to announce InstanceToSchema 1.0 [1]
>
> InstanceToSchema is a RELAX NG schema generator from XML instances.

I was very happy to see this. I have been using it with good results. It is
probably a safe choice for I2S NOT to guess at datatypes. One thing that
would be nice, though, is to have a namespace that would allow you to
annotate instances to indicate what datatype you would like to have in the
schema, something like:

<month dt:type="short"
xmlns:dt="http://www.xmloperator.org/datatypes";>02</month>

giving you:

<element name="month">
 <data type="xsd:short">
</element>

like eg:content="xsd:short"> and att="{xsd:short}" gives you in Examplotron
(http://examplotron.org/).

Mike




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


Powered by eList eXpress LLC