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 revisions.xmap
Date Sat, 22 Mar 2003 05:14:18 GMT
jefft       2003/03/21 21:14:18

  Modified:    src/resources/conf revisions.xmap
  Log:
  Simplify by hardcoding howto'ness and removing assumption that files are in
  community/**
  
  Revision  Changes    Path
  1.3       +11 -12    xml-forrest/src/resources/conf/revisions.xmap
  
  Index: revisions.xmap
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/conf/revisions.xmap,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- revisions.xmap	17 Mar 2003 14:27:57 -0000	1.2
  +++ revisions.xmap	22 Mar 2003 05:14:18 -0000	1.3
  @@ -12,42 +12,41 @@
       <map:selectors default="browser"/>
       <map:pipes/>
     </map:components>
  -
     <map:resources>
     </map:resources>
   
     <map:pipelines>
       <map:pipeline>
   
  -      <map:match pattern="community/*/index.xml">
  -        <map:generate src="content/xdocs/community/{1}/index.xml" />
  +      <map:match pattern="**index.xml">
  +        <map:generate src="content/xdocs/{0}" />
           <map:transform type="idgen" />
           <map:serialize type="xml"/>
         </map:match>
   
  -      <map:match pattern="community**revision-*.xml">
  -        <map:generate src="content/xdocs/community{1}revision-{2}.xml" />
  +      <map:match pattern="**revision-*.xml">
  +        <map:generate src="content/xdocs/{1}revision-{2}.xml" />
           <map:transform type="idgen" />
           <map:serialize type="xml"/>
         </map:match>
   
  -      <map:match pattern="community/*/*/revisions-**">
  -        <map:generate type="directory" src="content/xdocs/community/{1}/{2}">
  +      <map:match pattern="**revisions-**">
  +        <map:generate type="directory" src="content/xdocs/{1}">
             <map:parameter name="dateFormat" value="yyyy-MM-dd hh:mm" />
           </map:generate>
           <map:transform src="resources/stylesheets/directory2revisions.xsl" label="content">
             <map:parameter name="use-request-parameters" value="true" />
  -          <map:parameter name="page" value="{3}" />
  +          <map:parameter name="page" value="{2}" />
           </map:transform>
           <map:serialize type="xml" />
         </map:match>
   
  -      <map:match pattern="community/*/*/**.xml">
  +      <map:match pattern="**/*.xml">
           <map:aggregate element="all">
  -          <map:part src="content/xdocs/community/{1}/{2}/{3}.xml" />
  -          <map:part src="cocoon:/community/{1}/{2}/revisions-{3}" />
  +          <map:part src="content/xdocs/{0}" />
  +          <map:part src="cocoon:/{1}/revisions-{2}" />
           </map:aggregate>
  -        <map:transform src="resources/stylesheets/{1}2document.xsl" label="content"
/>
  +        <map:transform src="resources/stylesheets/howto2document.xsl" label="content"
/>
           <map:serialize type="xml"/>
         </map:match>
   
  
  
  

Mime
View raw message