W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2006

AW: Turn XML Schema into sample document using XSLT

From: Huditsch, Roman \(LNG-VIE\) <Roman.Huditsch@lexisnexis.at>
Date: Wed, 12 Jul 2006 14:56:57 +0200
Message-ID: <AB4D914EE3A3254CA8F439925297E4C6010E4833@LNGVIEEXCP01VB.legal.regn.net>
To: "Florent Georges" <darkman_spam@yahoo.fr>, "Mukul Gandhi" <gandhi.mukul@gmail.com>, <xmlschema-dev@w3c.org>
Cc: "Lev S. Pliner" <pliner@sky.ru>

Hi,

I experienced that XMLSpy has quite a few problems with recursive structures.
OxygenXML handled these cases correctly.
I suppose that writing some stylesheets for a generic sample document generation will get very complex. You would need to pass the name of the root element as a stylesheet parameter, since it is sometimes not possible to detect it from the schema structure.
The stylesheet must also take care to not run into infinite recursions.
It would be quite a challenge to write such an XSLT...

best regards,
Roman

> -----Ursprüngliche Nachricht-----
> Von: xmlschema-dev-request@w3.org 
> [mailto:xmlschema-dev-request@w3.org] Im Auftrag von Florent Georges
> Gesendet: Mittwoch, 12. Juli 2006 14:49
> An: Mukul Gandhi; xmlschema-dev@w3c.org
> Cc: Lev S. Pliner
> Betreff: Re: Turn XML Schema into sample document using XSLT
> 
> 
> Mukul Gandhi wrote:
> 
>   Hi
> 
> > 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?
> 
>   XMLSpy does it for very simple cases, if I remember right.  
> For more complex cases, like inheritance and abstract 
> elements, ID and IDREFS, coocurrence constraints, etcetera, I 
> think there is no support at all.
> 
>   Of course you can write an XSLT script to transform its 
> result to what you want, but I guess having a set of 
> stylesheets could be interesting to import in new, local, 
> simple generators.
> 
>   Regards,
> 
> --drkm
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 	
> 	
> 		
> ______________________________________________________________
> _____________
> Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! 
> Mail et son interface révolutionnaire. 
> http://fr.mail.yahoo.com
> 
> 
Received on Wednesday, 12 July 2006 12:57:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:55 GMT