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

Re: using xml schema to generate xml

Subject: Re: using xml schema to generate xml
From: Marc Lambrichs <marc.lambrichs@xxxxxxxxxxxxx>
Date: Tue, 14 Nov 2006 21:22:58 +0100
marc lambrichs
True. But do you think the second scenario is feasible? To be more specific: can I use SAX to process a schema and generate nodes based on the availability in the second xml? Or - even better - when I do my validation using SAX, can I generate nodes based on the presence/absence of nodes?

Michael Kay wrote:

Syntax-directed editors have some similarities with this idea.

But remember that for a given schema, there's an infinite number of possible
instances, and choosing a plausible one might not always be easy.

Michael Kay
http://www.saxonica.com/




-----Original Message-----
From: Marc Lambrichs [mailto:marc.lambrichs@xxxxxxxxxxxxx] Sent: 14 November 2006 13:08
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: using xml schema to generate xml


I'm thinking of a scenario where I can generate an (instance) xml-document based on an xml-schema and another xml-stream or -file. I think I can parse the schema with xslt and lookup the appropriate values in the other xml-file.

However, a more beautiful solution - I think - would be that parsing the xml together with the schema, and since some errors events will occur, attaching code to those events that will put some nodes in the resulting xml. Has anybody had some experience with one of these scenarios?

Cheers,
Marc





--
Marc Lambrichs
====================================
Melange IT B.V.
Postbus 3581
1001 AJ Amsterdam
http://www.melange-it.com
====================================
T +31 (0)20 618 58 52
F +31 (0)20 618 59 58
M +31 (0)6 1296 1703
------------------------------------

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
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-2013 All Rights Reserved.