Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Turn XML Schema into sample document using XSLT

From: George Cristian Bina <george@---------.--->
To: Mukul Gandhi <gandhi.mukul@-----.--->
Date: 7/12/2006 6:55:00 PM
The XS3P schema documentation stylesheet generates sample instances for 
the schema elements/types. You may look into that and adapt that code, 
but you will need good XSLT experience for that.
There are also tools as Mukul suggested that can do that, in addition to 
Mukul suggestion you have oXygen and Stylus studio.
We implemented this in oXygen using Xerces XML Schema API [1] and I 
think it would be a lot easier to do that than to generate the instance 
with XSLT. Xerces gives you access to a schema model that has all the 
type derivations resolved for instance and you can just walk that model 
and emit to the output the sample instance.

[1] http://xerces.apache.org/xerces2-j/faq-xs.html#faq-3

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
www.---.com


Mukul Gandhi wrote:
> 
> After some googling, it seems there is no such project. But tools like
> XMLSpy can do this nicely.
> 
> Do you specifically need XSLT stylesheet only?
> 
> Regards,
> Mukul
> 
> On 7/12/06, Lev S. Pliner <pliner@s...> wrote:
>>
>> Dear mail list members.
>>
>> Could you provide me with links on researches in the subject of
>> turning by means of XSLT a valid XML Schema (or perhaps some subset of
>> Schema) into sample document confirming the model?
>>
>> Thank you in advance.
>>
>> Lev Pliner.
> 

From Roman.Huditsch@l... Wed Jul 12 12:57:22 2006
Received: from 


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