Date: 2004-12-10T05:43:47 Editor: BertrandDelacretaz <[EMAIL PROTECTED]> Wiki: Cocoon Wiki Page: HtmlToXsltExperiments URL: http://wiki.apache.org/cocoon/HtmlToXsltExperiments
no comment Change Log: ------------------------------------------------------------------------------ @@ -1,5 +1,5 @@ = Converting HTML to XSLT for easier templating = -After all the recent discussions on easier templating, here's an experiment based on [http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=110246247525208&w=2 Conal Tuohy's html-to-xslt transform] (mucho thanks Conal), enhanced to allow the template writer to define individual HTML templates at the element level. +After all the recent discussions on easier templating, here's an experiment based on [http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=110246247525208&w=2 Conal Tuohy's html-to-xslt transform] (mucho thanks Conal), enhanced with ''template rules'' which make it easy to process elements without knowing where they appear in the input (like xsl:templates, which is what they are converted to). The use case is the conversion of one of our xdoc files, I tried with our userdocs/forms/binding.xml document as an example input (find it [http://svn.apache.org/repos/asf/cocoon/trunk/src/documentation/xdocs/userdocs/forms/binding.xml here]) and the results are pretty decent already, although the HTML template is very easy to understand.
