cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mircea Toma" <>
Subject RE: sitemap verbosity
Date Mon, 24 Apr 2000 13:25:43 GMT
The reason for the "syntax" is (I believe) that there will be more <process>
tags in a sitemap than <serializer>, <processor> and <producer>. Making
<process> tags the leafs of the tree instead of first elements from the root
the sitemap become less verbosely. The difference is that operations must be
read from leaf to root. Tags such <serializer> are not repeated for every
<process> instruction, grouping same type outputs.
If I don't make sense sorry to bother.

<!-- a common serializer tag for all html pages -->
  <serializer name="html"/>
<!-- last applied processor for all childs for this tag -->
    <processor name="xslt">
      <param name="stylesheet" value="beautifulthings.xsl"/>
<!-- a common producer tag for some mapped files, processed by the last
processor (expensivethings.xsl) -->
      <producer name="file"/>
        <process uri="flowers/*.html" translate="/home/xml/*flower.xml"/>
        <process uri="vases/*.html" translate="/home/xml/*vase.xml"/>
        <process uri="ceramics/*.html" translate="/home/xml/*ceramic.xml"/>
        <process uri="carpets/*.html" translate="/home/xml/*carpet.xml"/>
<!-- another processor (this is the first in this case) in the chain of
proccesors/filters wich propagate from the leafs of the tree trough the
root -->
      <processor name="xslt">
        <param name="stylesheet" value="expensivethings.xsl"/>
<!-- a common producer tag for other mapped files, processed by the first
processor (beautifulthings.xsl) and the last proccesor
(expensivethings.xsl) -->
        <producer name="file"/>
          <process uri="diamonds/*.html"
          <process uri="opals/*.html" translate="/home/xml/*opal.xml"/>
          <process uri="rubins/*.html" translate="/home/xml/*rubin.xml"/>

Mircea Toma.

View raw message