On Thursday, January 2, 2003, at 03:21 PM, Matt Sergeant wrote:
Yeah ... I'd rather have the forms generate based on the XML than the other way around.On Thursday, Jan 2, 2003, at 19:32 Europe/London, S Woodside wrote:I'm contemplating a site that's going to involve users editing XML files (gee whiz...) and I wondered... is there any tools out there that will do this work for me? I have heard of XForms but it does not seem to be available yet...A long time ago I wrote CGI::XMLForm for just that, but it's a pretty lousy tool by today's standards (though really innovative in its day - still one of my cooler ideas even though I do say so myself ;-)
What I recommend though is perhaps figuring out XSL stylesheets that can convert either RelaxNG or W3C Schemas descriptions of your XML into a form perhaps in PerForm format (with XSP), or perhaps as a plain HTML form. Then use AxKit to glue everything together.Damn. W3C XML Schema (xsd) vs. Relax NG (rng...) seems like a minefield I don't want to get into. Maybe I could make an XSLT that takes an existing XML file as a template and makes a form out of it ... I'm not really sure. Schematron seems to be OK for verifying the results. I have to admit that a general RNG -> forms -> RNG XSLT would be nice. Is there an RNG tool out there that I can use with axkit? I didn't find one in my search yesterday.
Doing RNG -> forms would probably also involve some logic in terms of allowing the user to add elements when there's more than one allowed.
simon
Matt.
--- www.simonwoodside.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
