W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2003

Some beginner's questions

From: Santino Troiani <santino.troiani@next.it>
Date: Fri, 10 Jan 2003 16:39:43 +0100
Message-ID: <004f01c2b8be$7f978a50$010b010a@next.dom>
To: <xmlschema-dev@w3.org>
Hi all,
I'm using XSD schema to perform validation about any XML document belonging to an archive of documents.

Almost all of the document is invariable so the application simply extracts it from the archive. A small part, however, is highly variable because needs an operator to supply decisions and data that will be integrated into the document in some structure based on proper XSD types.

Two questions:

1. The layout of the variable part depends on some other information pertinent to XML elements of the document. How can I specify this constrain ?

<Message id="19">
        <Data ...>...</Data>

Based on the value of the attribute "id" the layout of the element Data can vary.

2. Once I have the document I can validate some its elements against a XSD Schema. Can I *generate* an XML document or fragment from a XSD schema, with some external decisions provided by the application ? If yes how must the schema be structured ?


S. Troiani
Received on Friday, 10 January 2003 10:36:36 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:59 UTC