ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
Re: DTD to web form
by Rick Frankel other posts by this author
Jun 16 2006 8:30AM messages near this date
view in the new Beta List Site
DTD to web form | Re: DTD to web form
& XSLT On Thu, June 15, 2006 9:58 am, Joshua Santelli wrote:
> 
>  I'm working on an open source project that has several
>  XML configuration files (some more complex than
>  others).  There is a demand for a GUI to edit each of
>  these configuration files from the web.
> 
>  The ideal solution would be to create a DTD (or
>  schema) and have some code that would generate a web
>  form from that DTD.  There are several advantages to
>  this but we would mainly like to avoid maintaining web
>  forms and a DTD for one document.  I am aware of the
>  complexity with this approach as well.
> 
>  Does anyone know of anything out that that does
>  something like this?  perl and OSS are a plus.  Any
>  suggestions would be greatly appreciated.

I do something along these lines by converting the DTD to RelaxNG format
with trang. Then you can process the rng schema through an xsl processor
(e.g. XML::LibXSLT.pm) to generate the form.

You can use the "document()" function in libxslt along w/ xpath to
merge values from a data document into the output form.

rick

_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Joshua Santelli
Rick Frankel
Tod Harter
johns
Tod Harter
Joshua Santelli
Les Richardson

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved