Re: DTD to web form
by Tod Harter other posts by this author
Jun 18 2006 2:51AM messages near this date
view in the new Beta List Site
Re: DTD to web form
|
Re: DTD to web form
& XSLT Rick Frankel wrote:
> 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.
>
I'd have to agree that a RelaxNG schema is a HUGE improvement over a
DTD... And usually a lot simpler to deal with than XSD Schema, which are
a giant headache! Relaxer is another good tool to check out, it can
generate a schema from sample XML, which means you can avoid even
messing with a DTD to begin with (and chances are a DTD can't really
express all you want anyway in the long run).
> rick
>
> _______________________________________________
> Perl-XML mailing list
> Perl-XML@[...].com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
_______________________________________________
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
|