Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XML Schema: inheritance with variable order of childs

From: Sven <sven@---.---.-->
To: NULL
Date: 11/2/2007 9:12:00 AM


> The standard recommendations are:
>
>   1. Stop wanting that.
Ok, then I have to deal with more complex code for the xml-export.
And the human editors of the xml files are more restricted.

>   2. Use a more powerful schema definition language.
What do you mean with this?

>   3. Validate on application side, not on parser side.
The application already parses the files, but for offline usage I
would like to have the possibility to check against a schema, perhaps
with a simple xmllint.

>   4. Design a well-structured document:
>
>       <temperature scale="celsius">27</temperature>
>       <sky>cloudy</sky>
>
The sample provided above is not the original document. It just a
simplified example to describe the problem.
I think I described a quite well-structured schema already :-)

> Another interesting way of dealing with modestly crippled
> XML documents is transforming them into something sane
> using XSLT. Make the transformation scream and swear if it
> runs into something that shouldn't be there, and you're
> golden.
>
The documents will be generated by my application, but can be modified
by a human user. The schema should be a guideline which modifications
are allowed.

Thanks,
Sven



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