forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-forrest/src/resources/conf faq.xmap
Date Fri, 21 Mar 2003 15:44:19 GMT
jefft       2003/03/21 07:44:19

  Modified:    src/resources/conf faq.xmap
  Log:
  - Merge **/*.xml and *.xml matchers
  - Add support for auto-conversion of faq-v10 files to faq-v11
  
  Revision  Changes    Path
  1.5       +36 -10    xml-forrest/src/resources/conf/faq.xmap
  
  Index: faq.xmap
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/conf/faq.xmap,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- faq.xmap	21 Mar 2003 15:01:59 -0000	1.4
  +++ faq.xmap	21 Mar 2003 15:44:19 -0000	1.5
  @@ -7,10 +7,40 @@
       <map:transformers default="xslt"/>
       <map:readers default="resource"/>
       <map:matchers default="wildcard"/>
  -    <map:selectors default="browser"/>
  +    <map:actions>
  +      <map:action logger="sitemap.action.sourcetype" name="sourcetype" src="org.apache.forrest.components.sourcetype.SourceTypeAction">
  +        <sourcetype name="faq-v10">
  +          <document-declaration public-id="-//APACHE//DTD FAQ V1.0//EN" />
  +        </sourcetype>
  +        <sourcetype name="faq-v11">
  +          <document-declaration public-id="-//APACHE//DTD FAQ V1.1//EN" />
  +        </sourcetype>
  +      </map:action>
  +    </map:actions>
  + 
  +    <map:selectors default="browser">
  +      <map:selector logger="sitemap.selector.parameter" name="parameter" src="org.apache.cocoon.selection.ParameterSelector"
/>
  +    </map:selectors>
     </map:components>
   
     <map:resources>
  +    <map:resource name="transform-to-document">
  +      <map:act type="sourcetype" src="{src}">
  +        <map:select type="parameter">
  +          <map:parameter name="parameter-selector-test" value="{sourcetype}" />
  +          <map:when test="faq-v10">
  +            <map:transform src="resources/stylesheets/faqv10tofaqv11.xsl" label="content"
/>
  +            <map:transform src="resources/stylesheets/faq2document.xsl" label="content"
/>
  +          </map:when>
  +          <map:when test="faq-v11">
  +            <map:transform src="resources/stylesheets/faq2document.xsl" label="content"
/>
  +          </map:when>
  +          <map:otherwise />
  +        </map:select>
  +      </map:act>
  +      <map:transform type="idgen" />
  +    </map:resource>
  + 
       <map:resource name="skinit">
         <map:transform src="skins/{forrest:skin}/xslt/html/{type}.xsl">
           <map:parameter name="notoc" value="{notoc}"/>
  @@ -56,15 +86,11 @@
         <!-- SOURCE FORMATS                                               -->
         <!-- ============================================================ -->
   
  -      <map:match pattern="**/*.xml">
  -        <map:generate type="file" src="content/xdocs/{1}/{2}.xml" />
  -        <map:transform src="resources/stylesheets/faq2document.xsl" label="content"
/>
  -        <map:serialize type="xml"/>
  -      </map:match>
  -
  -      <map:match pattern="*.xml">
  -        <map:generate type="file" src="content/xdocs/{1}.xml" />
  -        <map:transform src="resources/stylesheets/faq2document.xsl" label="content"
/>
  +      <map:match pattern="**.xml">
  +        <map:generate type="file" src="content/xdocs/{0}" />
  +        <map:call resource="transform-to-document">
  +          <map:parameter name="src" value="content/xdocs/{0}" />
  +        </map:call>
           <map:serialize type="xml"/>
         </map:match>
   
  
  
  

Mime
View raw message