You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Ferdinand Soethe <fe...@apache.org> on 2007/03/26 23:04:38 UTC

why was idgen removed from the html-processing in forrest.xmap

As far as I can make sense from the many comments in forrest.xmap ;-)
the processing of *.html source files happens in line 238

> <map:match type="i18n" pattern="{properties:content.xdocs}{1}.*.html">
>          <map:generate src="{source}" type="html" />
>          <map:transform src="{lm:transform.html.document}" />
>          <map:serialize type="xml-document"/>
>        </map:match>

now following {lm:transform.html.document} I find that
locationmap.xml loads a secondary locationmap in line 69

<select>
      <mount src="{forrest:forrest.context}/locationmap-transforms.xml"/>
    </select>

which in turn processes our transformation in line 142


<!-- All core other transforms -->
    <match pattern="transform.*.*">
      <select>
        <location
src="{properties:skins-dir}{forrest:forrest.skin}/xslt/html/{1}-to-{2}.xsl"
/>
        <location
         
src="{forrest:forrest.context}/skins/{forrest:forrest.skin}/xslt/html/{1}-to-{2}.xsl"/>
        <location
src="{forrest:forrest.context}/skins/common/xslt/html/{1}-to-{2}.xsl"/>
        <location src="{forrest:forrest.stylesheets}/{1}-to-{2}.xsl"/>
      </select>
    </match>

by looking for the stype sheet named html-to-document.xsl in any of
those locations.
Correct so far?

What I don't get is why we no longer have that idgen-step
> <map:transform type="idgen" />
which was there in 0.7 and is still used in .8 for ihtml.

Any explanations?


Regards,
Ferdinand Soethe



Re: why was idgen removed from the html-processing in forrest.xmap

Posted by Ferdinand Soethe <ma...@soethe.net>.
Just found the idgen-step where it has always been (in the
body-*.html-matcher). Pardon my confusion. Problem solved.

Ferdinand