Re: W3C Schema to HTML form.Generic solution available?
Roy Jacob <[email protected]> Tue, 2 Dec 2003 01:28:53 -0800
| Newsgroups | gmane.comp.java.sun.xml.general |
|---|---|
| Message-ID | <26826AA24153E64DB9B1E73679292CA30327561A@boxstermail.corp.ilumin.com> |
This is a multi-part message in MIME format.
------_=_NextPart_001_01C3B8B6.B3DBD09D
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi.
Have a look at this and the following articles.
http://www.xml.com/pub/a/2003/04/30/editing.html
=20
It's not the answer you are looking for but it may help you develop your
own solution. I'm in a similar boat to you and have been using these
articles for referance. If your a classical OO programmer like me the
XSL learning curve is V steep!
=20
Roy.
-----Original Message-----
From: amol [mailto:[email protected]]=20
Sent: 02 December 2003 07:12
To: [email protected]
Subject: W3C Schema to HTML form.Generic solution available?
Am new to xml and this is my first post.
=20
Scenario:
1. Application has some data stored in xml format.
=20
2. Application wants the user to be able to edit this data over the web.
=20
3. This warrants the need for a generic application which can convert
xml documents to html forms and html forms back to xml documents.
=20
4. To generat a form, it would need to know the details of the
individual elements, e.x., the data type, possible values if any, etc.
Now, this is possible only if this form generator is able to read the
"schema" of that xml document.
=20
5. Thus, using the schema document, this application would generate a
corresponding html form. The user will enter information in this form,
and on submit, this application will again convert the form data into
the required xml document.
=20
This scenario looks pretty generic. Lot of people may have had to do
this. Isnt there any open source solution to this problem anywhere?
I tried google for a solution but couldnt find a comprehensive one.
One approach could be to have xsl to convert any schema document to html
form. Has anyone done it before?
=20
Thanks in advance.
Amol
----------------------------------------------------- xml-interest: A
list for discussing XML technologies in the Java Platform. To post,
mailto:[email protected] Archives at:
http://archives.java.sun.com/xml-interest.html To unsubscribe,
mailto:[email protected] the following message; signoff
xml-interest.=20
-----------------------------------------------------
xml-interest: A list for discussing XML technologies in the Java Platform.
To post, mailto:[email protected]
Archives at: http://archives.java.sun.com/xml-interest.html
To unsubscribe, mailto:[email protected] the following message;
signoff xml-interest.
------_=_NextPart_001_01C3B8B6.B3DBD09D
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D800032309-02122003><FONT face=3D"Trebuchet MS"=20
color=3D#0000ff>Hi.</FONT></SPAN></DIV>
<DIV><SPAN class=3D800032309-02122003><FONT face=3D"Trebuchet MS" =
color=3D#0000ff>Have=20
a look at this and the following articles.</FONT></SPAN></DIV>
<DIV><SPAN class=3D800032309-02122003><FONT face=3D"Trebuchet MS" =
color=3D#0000ff><A=20
href=3D"http://www.xml.com/pub/a/2003/04/30/editing.html">http://www.xml.=
com/pub/a/2003/04/30/editing.html</A></FONT></SPAN></DIV>
<DIV><SPAN class=3D800032309-02122003><FONT face=3D"Trebuchet MS"=20
color=3D#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=3D800032309-02122003><FONT face=3D"Trebuchet MS" =
color=3D#0000ff>It's=20
not the answer you are looking for but it may help you develop your own=20
solution. I'm in a similar boat to you and have been using these =
articles for=20
referance. If your a classical OO programmer like me the XSL learning =
curve is V=20
steep!</FONT></SPAN></DIV>
<DIV><SPAN class=3D800032309-02122003><FONT face=3D"Trebuchet MS"=20
color=3D#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=3D800032309-02122003><FONT face=3D"Trebuchet MS"=20
color=3D#0000ff>Roy.</FONT></SPAN></DIV>
<BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> amol =
[mailto:[email protected]] <BR><B>Sent:</B> 02 December 2003=20
07:12<BR><B>To:</B> [email protected]<BR><B>Subject:</B> W3C =
Schema to=20
HTML form.Generic solution available?<BR><BR></FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>Am new to xml and this is my first=20
post.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>Scenario:</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>1. Application has some data stored =
in xml=20
format.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>2. Application wants the user to be =
able to=20
edit this data over the web.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>3. This warrants the need for a =
generic=20
application which can convert xml documents to html forms and html =
forms back=20
to xml documents.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>4. To generat a form, it would need =
to know the=20
details of the individual elements, e.x., the data type, possible =
values if=20
any, etc. Now, this is possible only if this form generator is able to =
read=20
the "schema" of that xml document.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>5. Thus, using the schema document, =
this=20
application would generate a corresponding html form. The user will =
enter=20
information in this form, and on submit, this application will again =
convert=20
the form data into the required xml document.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>This scenario looks pretty generic. =
Lot of=20
people may have had to do this. Isnt there any open source solution to =
this=20
problem anywhere?</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>I tried google for a solution but =
couldnt find=20
a comprehensive one.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>One approach could be to have xsl =
to convert=20
any schema document to html form. Has anyone done it =
before?</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>Thanks in advance.</FONT></DIV>
<DIV><FONT face=3DVerdana=20
=
size=3D2>Amol</FONT></DIV>-----------------------------------------------=
------=20
xml-interest: A list for discussing XML technologies in the Java =
Platform. To=20
post, mailto:[email protected] Archives at:=20
http://archives.java.sun.com/xml-interest.html To unsubscribe,=20
mailto:[email protected] the following message; signoff =
xml-interest.=20
</BLOCKQUOTE></BODY></HTML>
-----------------------------------------------------
xml-interest: A list for discussing XML technologies in the Java Platform.
To post, mailto:[email protected]
Archives at: http://archives.java.sun.com/xml-interest.html
To unsubscribe, mailto:[email protected] the following message;
signoff xml-interest.
------_=_NextPart_001_01C3B8B6.B3DBD09D--