|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Transform schema to web-form - algorithm needed
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








