  | |  | -- Editing XML | -- Editing XML 2003-09-17 - By Greg Hess
Hi All, I am new to XML, XSLT, schema so please bear with me. I have been assigned to build web application that needs to alter many 3rd party defined XML data structures. I would like to take a 3rd party XML data structure and defined XSLT to create a HTML form for editing the underling XML data structure. Only requiring basic input validation maybe from a schema. When the form has been completed and submitted the XML data structure would be recreated with the new input values. I need to do this in a generic way so that the same application can process and edit any defined XML data structure. XML --> HTML FORM --> XML Can I do this? Are there any tools out there that enable this? Could a 3rd party define a XML data structure and XSLT that would create a HTML form for editing the data structure? Any comments/input is greatly appreciated, I have been assigned this task and have no idea if it is possible or where to start. Many Thanks,
Greg Hess
Software Engineer
Wrapped Apps Corporation
275 Michael Cowpland Dr.
Suite 201
Ottawa, Ontario
K2M 2G2
Tel: (613) 591 -7552
Fax: (613) 591-0523
1 (877) 388-6742
<http://www.wrappedapps.com/>
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft -com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1= "urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC -html40">
<head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 10"> <meta name=Originator content="Microsoft Word 10"> <link rel=File-List href="cid:filelist.xml@(protected)"> <link rel=Edit-Time-Data href="cid:editdata.mso@(protected)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--><o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"/> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="Street"/> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"/> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"/> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="address"/> <!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:DoNotRelyOnCSS/> </o:OfficeDocumentSettings> </xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <w:SpellingState>Clean</w:SpellingState> <w:GrammarState>Clean</w:GrammarState> <w:DocumentKind>DocumentEmail</w:DocumentKind> <w:EnvelopeVis/> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if !mso]> <style> st1\:*{behavior:url(#default#ieooui) } </style> <![endif]--> <style> <!-- /* Font Definitions */ @(protected) {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0; mso-font-charset:2; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:0 268435456 0 0 -2147483648 0;} @(protected) {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:553679495 -2147483648 8 0 66047 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline; text-underline:single;} span.EmailStyle17 {mso-style-type:personal-compose; mso-style-noshow:yes; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt; font-family:Arial; mso-ascii-font-family:Arial; mso-hansi-font-family:Arial; mso-bidi-font-family:Arial; color:windowtext;} span.SpellE {mso-style-name:""; mso-spl-e:yes;} span.GramE {mso-style-name:""; mso-gram-e:yes;} @(protected) Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} </style> <![endif]--> </head>
<body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Hi All,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>I am new to XML, XSLT, <span class=GramE>schema</span> so please bear with me.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>I have been assigned to build web application that needs to alter many 3<sup>rd</sup> party defined XML data structures. I would like to take a 3<sup>rd</sup> party XML data structure and defined XSLT to create a HTML form for editing the underling XML data structure. <span class=GramE>Only requiring basic input validation maybe from a schema.</span> When the form has been completed and submitted the XML data structure would be recreated with the new input values. I need to do this in a generic way so that the same application can process and edit any defined XML data structure.<o:p></o:p>< /span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><span style='mso-tab-count:3'> </span>XML </span></font><font size=2 face=Wingdings><span style='font-size:10.0pt; font-family:Wingdings;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial; mso-bidi-font-family:Arial;mso-char-type:symbol;mso-symbol-font-family :Wingdings'><span style='mso-char-type:symbol;mso-symbol-font-family:Wingdings'>à</span>< /span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> HTML FORM < /span></font><font size=2 face=Wingdings><span style='font-size:10.0pt;font-family:Wingdings; mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family: Arial;mso-char-type:symbol;mso-symbol-font-family:Wingdings'><span style='mso-char-type:symbol;mso-symbol-font-family:Wingdings'>à</span>< /span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> XML<o:p></o :p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Can I do this?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Are there any tools out there that enable this?<o:p></o:p>< /span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Could a 3<sup>rd</sup> party define a XML data structure and XSLT that would create a HTML form for editing the data structure?<o:p></o:p>< /span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Any comments/input is greatly <span class=GramE>appreciated, </span> I have been assigned this task and have no idea if it is possible or where to start.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Many Thanks,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=25 style='width:18.75pt;border-collapse:collapse;mso-padding-alt:0in 0in 0in 0in'> <tr height=16 style='mso-yfti-irow:0;height:12.0pt'> <td width="100%" height=16 style='width:100.0%;padding:0in 0in 0in 0in; height:12.0pt'> <p class=MsoNormal><st1:PersonName><font size=2 color=navy face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:navy;mso-no-proof:yes'>Greg Hess</span></font></st1:PersonName><span style='mso-no-proof:yes'><o:p></o:p ></span></p> </st1:PersonName></td> </tr> <tr height=16 style='mso-yfti-irow:1;height:12.0pt'> <td width="100%" height=16 style='width:100.0%;padding:0in 0in 0in 0in; height:12.0pt'> <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 color=navy face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma; color:navy;font-weight:bold;mso-bidi-font-weight:normal;mso-no-proof:yes' >Software Engineer</span></font></b><span style='mso-no-proof:yes'><o:p></o:p></span>< /p> </td> </tr> <tr height=16 style='mso-yfti-irow:2;height:12.0pt'> <td width="100%" height=16 style='width:100.0%;padding:0in 0in 0in 0in; height:12.0pt'> <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 color=navy face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma; color:navy;font-weight:bold;mso-bidi-font-weight:normal;mso-no-proof:yes' >Wrapped Apps Corporation<o:p></o:p></span></font></b></p> </td> </tr> <tr height=19 style='mso-yfti-irow:3;height:14.25pt'> <td width="100%" height=19 style='width:100.0%;padding:0in 0in 0in 0in; height:14.25pt'><st1:Street><st1:address style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url('res://ietag.dll/#34/#1001'); BACKGROUND-REPEAT: repeat-x"> <p class=MsoNormal><st1:Street><st1:address><font size=2 color=navy face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:navy; mso-no-proof:yes'>275 Michael Cowpland Dr</span></font></st1:address></st1 :Street><font color=navy><span style='mso-bidi-font-family:Tahoma;color:navy;mso-no-proof: yes'></st1:address></st1:Street>.<o:p></o:p></span></font></p> </td> </tr> <tr height=19 style='mso-yfti-irow:4;height:14.25pt'> <td width="100%" height=19 style='width:100.0%;padding:0in 0in 0in 0in; height:14.25pt'><st1:address style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url('res://ietag.dll/#34/#1001'); BACKGROUND-REPEAT: repeat-x "><st1:Street> <p class=MsoNormal><st1:address><st1:Street><font size=2 color=navy face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:navy; mso-no-proof:yes'>Suite</span></font></st1:Street><font color=navy><span style='mso-bidi-font-family:Tahoma;color:navy;mso-no-proof:yes'></st1:Street> 201</span></font></st1:address><font color=navy><span style='mso-bidi-font -family: Tahoma;color:navy;mso-no-proof:yes'><o:p></o:p></span></font></p> </st1:address></td> </tr> <tr height=19 style='mso-yfti-irow:5;height:14.25pt'> <td width="100%" height=19 style='width:100.0%;padding:0in 0in 0in 0in; height:14.25pt'><st1:place><st1:City> <p class=MsoNormal><st1:place><st1:City><font size=2 color=navy face=Tahoma> <span style='font-size:10.0pt;font-family:Tahoma;color:navy;mso-no-proof:yes' >Ottawa</span></font></st1:City><font color=navy><span style='mso-bidi-font-family:Tahoma;color:navy;mso-no-proof: yes'></st1:City>, </span></font><st1:State><font color=navy><span style='mso-bidi-font-family:Tahoma;color:navy;mso-no-proof:yes'><st1:State >Ontario</span></font></st1:State></st1:place><span style='mso-no-proof:yes'><o:p></o:p></span></p> </st1:State></st1:place></td> </tr> <tr height=16 style='mso-yfti-irow:6;height:12.0pt'> <td width="100%" height=16 style='width:100.0%;padding:0in 0in 0in 0in; height:12.0pt'> <p class=MsoNormal><font size=2 color=navy face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:navy;mso-no-proof:yes'>K2M 2G2<o:p></o:p></span></font></p> </td> </tr> <tr height=16 style='mso-yfti-irow:7;height:12.0pt'> <td width="100%" height=16 style='width:100.0%;padding:0in 0in 0in 0in; height:12.0pt'> <p class=MsoNormal><font size=2 color=navy face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:navy;mso-no-proof:yes'>Tel: (613) 591 -7552<o:p></o:p></span></font></p> </td> </tr> <tr height=16 style='mso-yfti-irow:8;height:12.0pt'> <td width="100%" height=16 style='width:100.0%;padding:0in 0in 0in 0in; height:12.0pt'> <p class=MsoNormal><font size=2 color=navy face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:navy;mso-no-proof:yes'>Fax: (613) 591-0523<o:p></o:p></span></font></p> </td> </tr> <tr height=1 style='mso-yfti-irow:9;height:.75pt'> <td width="100%" height=1 style='width:100.0%;padding:0in 0in 0in 0in; height:.75pt'> <p class=MsoNormal style='mso-line-height-alt:.75pt'><font size=2 color=navy face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:navy; mso-no-proof:yes'>1 (877) 388-6742<o:p></o:p></span></font></p> </td> </tr> <tr height=81 style='mso-yfti-irow:10;mso-yfti-lastrow:yes;height:60.75pt'> <td width="100%" height=81 style='width:100.0%;padding:0in 0in 0in 0in; height:60.75pt'> <p class=MsoNormal><b style='mso-bidi-font-weight:normal'><font size=2 color=blue face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma; color:blue;font-weight:bold;mso-bidi-font-weight:normal;mso-no-proof:yes'><a href="http://www.wrappedapps.com/"><span style='text-decoration:none; text-underline:none'><img border=0 width=190 height=69 id="_x0000_i1025" src="cid:image001.gif@(protected)"></span></a></span></font></b><span style='mso-no-proof:yes'><o:p></o:p></span></p> </td> </tr> </table>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>
|
|
 |