forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <>
Subject *.ihtml - Writing Forrest pages with an Html editor
Date Wed, 15 Jan 2003 10:39:46 GMT

I have done a working html -> document11 stylesheet, and are now able to 
generate pages from html files as we do for xdocs.

On my machine I have made the following to the sitemap.

   <!-- Generates body HTML for root-level files -->
    <map:match pattern="body-**.xml">

      <!-- if the file is present as ihtml, give that to the user... -->
      <map:act type="resource-exists">
        <map:parameter name="url" value="content/xdocs/{1}.ihtml"/>
        <map:generate src="content/xdocs/{../1}.ihtml" type="html"/>
        <map:transform src="library/xslt/html2document.xsl"/>
        <map:call resource="skinit">
          <map:parameter name="type" value="document2html"/>
          <map:parameter name="path" value="{../1}.xml"/>

     <map:generate src="content/xdocs/{1}.xml"/>
     <map:call resource="transform-to-document">
      <map:parameter name="src" value="content/xdocs/{1}.xml"/>
     <map:call resource="skinit">
      <map:parameter name="type" value="document2html"/>
      <map:parameter name="path" value="{1}.xml"/>

It makes ihtml files be used to generate content if they are present, 
instead of the document11 version.

So in essence, there would be an editor for Forrest called Mozilla Composer.

Nicola Ken Barozzi         
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)

View raw message