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

Transform schema to web-form - algorithm needed

Subject: Transform schema to web-form - algorithm needed
From: "Andrew Maclean" <andyjmaclean@xxxxxxxxxxx>
Date: Wed, 04 Feb 2004 08:01:09 +0000
transform schema
Dear all,

I am trying to write xsl that will create an upload form that will correspond to an xsd file. The idea is that when the schema changes, the web-page that allows the user to upload XML will adapt, ensuring that what is sent can always be validated.

It's been a couple of weeks now and I've picked up a range of XSL skills (thanks in no small part to this group) but I'm still nowhere near a solution. I think my logic - the algorithm - is flawed. I was wondering if anyone has ever attempted something similar if they could give me some pointers on how to continue.

Basically my xsl code scans the xsd file and declares variables corresponding to every <xsd:element> <xsd:simple-type> and every <xsd:complex-type> it finds. References to other variables are included in these variables. Since everything in the xsd is ultimately based on a simple type (like xsd:string) my linking template can take a complex element and (through recursion) represent it as a series of HTML form components. After days of trying however the performance is slow (1 min plus) and there are still ommissions in the final created form.

Is there a well-known algorithm for this kind of problem?

Thanks,

Mr Andrew Maclean

_________________________________________________________________
Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.