forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ferdinand Soethe <ferdin...@apache.org>
Subject question about changes in forrest.xmap
Date Mon, 26 Mar 2007 20:36:30 GMT
I just noticed that there are quite a few changes in forrest.xmap that
require changes to
"How to customize processing of html source"

Is it correct to say that (forrest.xmap line 216)
> <map:match type="wildcard" pattern="**.xml">
>        <map:select type="exists">
>          <map:when test="{lm:plugin.xmap.input}">
>              <map:mount uri-prefix=""
>                         src="{lm:plugin.xmap.input}"
>                         check-reload="yes"
>                         pass-through="true"/>
>          </map:when>
>        </map:select>

will kick in when content is provided through a plugin and the next matcher

> <map:match type="i18n" pattern="{properties:content.xdocs}{1}.*.xml">
>           <map:generate src="{source}" />
>           <map:call resource="transform-to-document">
>             <map:parameter name="src" value="{source}" />
>           </map:call>
>           <map:serialize type="xml-document"/>
>        </map:match>
>        <map:match type="i18n"
> pattern="{properties:content.xdocs}{1}.*.ihtml">
>          <map:generate src="{source}" type="html" />
>          <map:transform src="{lm:transform.html.document}" />
>          <map:transform type="idgen" />
>          <map:serialize type="xml-document"/>
>        </map:match>
>        <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>
>        <map:match type="i18n"
> pattern="{properties:content.xdocs}{1}.*.txt">
>          <map:generate type="text2xml" src="{source}" />
>          <map:transform src="{lm:transform.text.document}">
>          <map:parameter name="filename" value="{2}" />
>          </map:transform>
>          <map:serialize type="xml-document"/>
>        </map:match>
>        <map:match type="i18n"
> pattern="{properties:content.xdocs}{1}.*.xml">
>           <map:generate src="{source}" />
>           <map:call resource="transform-to-document">
>             <map:parameter name="src" value="{source}" />
>           </map:call>
>           <map:serialize type="xml-document"/>
>        </map:match>
is the new file resolver that combines i18N capabilities with a cascade
through the different supported formats?
Side issue. What is the effect of i18n being used here in the matcher?

Thanks,
Ferdinand

Mime
View raw message