[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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>
xml sample document

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

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.