[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Generating XSD Schema files from XML source files
Generating a schema for an XML file is a non-trivial task, unless of
course you want to generate a trivial schema - one which every
conceivable document conforms to. Of course there are an infinite number
of schemas that any document conforms to: some of them might allow only
that one document, and no others. So a lot depends on why you are doing
it, and on how constraining you want the schema to be. It's not clear
from your description whether you want a different schema for each
source document (in which case you're not going to be able to hand-tune
them at all), or whether you want a schema that all 500 source documents
conform to.
All the IDEs such as Stylus Studio and oXygen have tools that will generate a schema from a source document, and they do a pretty respectable job, though the results need hand-tuning to be usable in practice. But they do tend to work on individual document instances rather than batches. Doing it yourself in XSLT sounds like hard work. So although your question is on-topic for this forum, the answer isn't... Michael Kay Saxonica On 09/11/2010 14:26, Neil Owens wrote:
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|