We've something related with XSQLServlet.
Normally with this servlet a given query will return
a row from a table or view in xml. We've arranged to
prefix the xml with a section from the database's meta-data
describing the table or view. We have some xsl that transforms the
metadata into appropriate HTML constructs and then sets the current
values (it names the elements such that a post from the HTML form
will update the data).
We've 'discovered' a couple of things:
1) this is _really_ handy for producing a rough and ready
interface to arbitrary (new) database tables.
2) you can 'customize' the default tables to produce smarter ones
that produce a better table specific UI.
3) it is no substitute for a well crafted UI.
If any XsqlServlet users want a copy of what we've done can email me
at [EMAIL PROTECTED] and I'll check if the client will let us release
the code.
Steven Owens wrote:
>
> This is kind of an odd question, but as anybody done anything in
> the direction of dynamically generating HTML forms to edit XML
> objects? I'm thinking in terms of either:
>
> 1) walking the schema for a document to generate HTML <INPUT> and
> <TEXTAREA> tags (and then walking the document itself to populate the
> tags with default values) or
>
> 2) some other approach that would involve walking the document
> itself and adding appropriate attributes to each element (e.g. a
> "label" attribute containing a value that would get inserted before
> the <INPUT> tag, etc), before passing it to a simpler version of
> step 1.
>
> Either of these approaches might be assisted via some sort of
> configuration file. Although I'd *really* like to keep the number of
> interrelated files down. One thought that has occurred is to figure
> out if I can augment the schema files to keep the form-generating
> details in there.
>
> Steven J. Owens
> [EMAIL PROTECTED]
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html