cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fel...@apache.org>
Subject servletService / servletLinkRewriter
Date Wed, 16 May 2007 14:31:11 GMT
I'm not sure about this behaviour is correct (I thought to have read
somewhere in the migration guide that it's enough to put the
servletLinkRewriter transformer just before the html serialization, but
here I need to use it in between also.

If this is correct (I suppose so) then it's ok, otherwise I found a bug.

sitemap
<snip>

        <map:generate src="xmldb:xindice-embed:///db/{1}"/>
        <map:transform src="xmldb2samples.xsl"/>
        <map:transform type="servletLinkRewriter" />
        <!-- Make use of servlet services -->
        <map:serialize type="servletService" mime-type="text/html">
          <map:parameter name="service"
value="servlet:style-default:/service/common/simple-samples2html" />
        </map:serialize>



in xmldb2samples.xsl I have a constructs like:
  <xsl:import
href="servlet:style-default:/stylesheets/system/xml2html.xslt"/>
  <link href="servlet:style-default:/styles/prettycontent.css"
type="text/css" rel="stylesheet"/>
  <script src="servlet:style-default:/scripts/prettycontent.js"
type="text/javascript"/>



Felix

Mime
View raw message