Re: Help on XML Schema generation using XSLT

Densil,

I would say converting a basic XML document to a schema document is not probable unless there exists a certain quantity of known information that you are aware of outside the XML instance.  I say this because there are many details associated with a schema that cannot be inferred from a single XML instance, such as how many times a certain child should occur under a parent element or if a certain parent element should be confined to only a limited specified choice of child elements.

The only way that such a task would become probable is if the XML document is auto-generated with known and defined meta-data and structure.  This is so because then you known exactly what all the bounds of those generated instances of XML should be limited to and allow expression of, which is the breath of information necessary to write a schema.

If you would supply additional information about the nature of the XML instances and the method by which they are generated and the depth of their consumption I believe anybody on this mailing list could supply you with tips to achieve a highly efficient solution.

Austin

Received on Thursday, 19 August 2010 23:59:04 UTC