Re: W3C Schema to HTML form.Generic solution available?

amol <[email protected]> Tue, 2 Dec 2003 16:17:34 +0530
Newsgroups gmane.comp.java.sun.xml.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.

------=_NextPart_000_01EB_01C3B8EF.CB99E1A0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

MessageThanks Roy.
I did go through this series of articles but its too specific to the =
example xml document in the article.
I guess the solution would be to write a XSL which transform the schema =
into xhtml form.
But I am sure someone must have already done this since it looks like a =
common problem.
yups..am basically OO programmer. Just today I went through the XSL =
tutorial on w3school (http://www.w3schools.com/xsl/) Pretty informative =
and concise.
Still grappling for a solution.....

  ----- Original Message -----=20
  From: Roy Jacob=20
  To: [email protected]=20
  Sent: Tuesday, December 02, 2003 2:58 PM
  Subject: Re: W3C Schema to HTML form.Generic solution available?


  Hi.
  Have a look at this and the following articles.
  http://www.xml.com/pub/a/2003/04/30/editing.html

  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!

  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.

    Scenario:
    1. Application has some data stored in xml format.

    2. Application wants the user to be able to edit this data over the =
web.

    3. This warrants the need for a generic application which can =
convert xml documents to html forms and html forms back to xml =
documents.

    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.

    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.

    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?

    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.=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_000_01EB_01C3B8EF.CB99E1A0
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2722.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DVerdana size=3D2>Thanks Roy.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>I did go through this series of =
articles but its=20
too specific to the example xml document in the article.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>I guess the solution would be to =
write a XSL=20
which transform the schema into xhtml form.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>But I am sure someone must have =
already done this=20
since it looks like a common problem.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>yups..am basically OO programmer. =
Just today I=20
went through the XSL&nbsp;tutorial on w3school (<A=20
href=3D"http://www.w3schools.com/xsl/">http://www.w3schools.com/xsl/</A>)=
 Pretty=20
informative and concise.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>Still grappling for a =
solution.....</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A [email protected] href=3D"mailto:[email protected]">Roy =
Jacob</A>=20
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
[email protected]=20
  =
href=3D"mailto:[email protected]">[email protected]</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, December 02, =
2003 2:58=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: W3C Schema to HTML =

  form.Generic solution available?</DIV>
  <DIV><BR></DIV>
  <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"=20
  color=3D#0000ff>Have a look at this and the following=20
  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>&nbsp;</DIV>
  <DIV><SPAN class=3D800032309-02122003><FONT face=3D"Trebuchet MS"=20
  color=3D#0000ff>It's not the answer you are looking for but it may =
help you=20
  develop your own solution. I'm in a similar boat to you and have been =
using=20
  these articles for referance. If your a classical OO programmer like =
me the=20
  XSL learning curve is V steep!</FONT></SPAN></DIV>
  <DIV><SPAN class=3D800032309-02122003><FONT face=3D"Trebuchet MS"=20
  color=3D#0000ff></FONT></SPAN>&nbsp;</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=20
    [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=20
    to 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>&nbsp;</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>&nbsp;</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>&nbsp;</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=20
    back to xml documents.</FONT></DIV>
    <DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DVerdana size=3D2>4. To generat a form, it would =
need to know=20
    the details of the individual elements, e.x., the data type, =
possible values=20
    if any, etc. Now, this is possible only if this form generator is =
able to=20
    read the "schema" of that xml document.</FONT></DIV>
    <DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</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>&nbsp;</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=20
    find 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>&nbsp;</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.=20
    To 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>-----------------------------------------------------=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_000_01EB_01C3B8EF.CB99E1A0--