cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ovi...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/schecoon/webapp sitemap.xmap
Date Tue, 16 Apr 2002 00:24:16 GMT
ovidiu      02/04/15 17:24:16

  Modified:    src/scratchpad/schecoon/webapp sitemap.xmap
  Log:
  Modified to have the examples use the same look and feel of the documentation.
  
  Revision  Changes    Path
  1.20      +43 -29    xml-cocoon2/src/scratchpad/schecoon/webapp/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/webapp/sitemap.xmap,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- sitemap.xmap	15 Apr 2002 05:26:55 -0000	1.19
  +++ sitemap.xmap	16 Apr 2002 00:24:16 -0000	1.20
  @@ -11,18 +11,22 @@
       <map:flow-interpreters default="JavaScript"/>
     </map:components>
   
  -  <map:pipelines>
  +  <map:resources>
  +    <map:resource name="show-page">
  +      <map:aggregate element="site">
  +        <map:part src="cocoon:/book-{full-filename}.xml"/>
  +        <map:part src="cocoon:/body-{full-filename}.xml" label="content"/>
  +      </map:aggregate>
  +      <map:transform src="stylesheets/site2xhtml.xsl">
  +        <map:parameter name="use-request-parameters" value="true"/>
  +        <map:parameter name="header" value="graphics/{filename}-header.jpg"/>
  +      </map:transform>
  +      <map:serialize/>
  +    </map:resource>
  +  </map:resources>
   
  -     <!-- All examples are located under the examples/ directory, and
  -     are standalone samples, with their own sitemap. The following
  -     generic mount operation loads them on demand. -->
  -    <map:pipeline>
  -      <map:match pattern="*/**">
  -        <map:mount uri-prefix="{1}"
  -                   src="examples/{1}/sitemap.xmap"
  -                   check-reload="yes"/>
  -      </map:match>
  -    </map:pipeline>
  +
  +  <map:pipelines>
   
       <!-- Schecoon documentation pipeline -->
   
  @@ -34,6 +38,9 @@
   
         <map:match pattern="**book-**.xml">
           <map:generate src="docs/{1}book.xml"/>
  +        <map:transform type="augment">
  +          <map:parameter name="mount" value=""/>
  +        </map:transform>
           <map:transform src="stylesheets/book2menu.xsl">
             <map:parameter name="use-request-parameters" value="true"/>
             <map:parameter name="resource" value="{2}.html"/>
  @@ -41,6 +48,12 @@
           <map:serialize type="xml"/>
         </map:match>
   
  +      <map:match pattern="body-examples/**.xml">
  +        <map:generate src="examples/{1}.xsp" type="serverpages"/>
  +        <map:transform src="stylesheets/extended-document2html.xsl"/>
  +        <map:serialize type="xml"/>
  +      </map:match>
  +
         <map:match pattern="body-**.xml">
           <map:generate src="docs/{1}.xml"/>
           <map:transform src="stylesheets/document2html.xsl"/>
  @@ -48,27 +61,17 @@
         </map:match>
   
         <map:match pattern="*.html">
  -        <map:aggregate element="site">
  -          <map:part src="cocoon:/book-{1}.xml"/>
  -          <map:part src="cocoon:/body-{1}.xml" label="content"/>
  -        </map:aggregate>
  -        <map:transform src="stylesheets/site2xhtml.xsl">
  -          <map:parameter name="use-request-parameters" value="true"/>
  -          <map:parameter name="header" value="graphics/{1}-header.jpg"/>
  -        </map:transform>
  -        <map:serialize/>
  +        <map:call resource="show-page">
  +          <map:parameter name="filename" value="{1}"/>
  +          <map:parameter name="full-filename" value="{1}"/>
  +        </map:call>
         </map:match>
   
         <map:match pattern="**/*.html">
  -        <map:aggregate element="site">
  -          <map:part src="cocoon:/{1}/book-{1}/{2}.xml"/>
  -          <map:part src="cocoon:/body-{1}/{2}.xml" label="content"/>
  -        </map:aggregate>
  -        <map:transform src="stylesheets/site2xhtml.xsl">
  -          <map:parameter name="use-request-parameters" value="true"/>
  -          <map:parameter name="header" value="graphics/{2}-header.jpg"/>
  -        </map:transform>
  -        <map:serialize/>
  +        <map:call resource="show-page">
  +          <map:parameter name="filename" value="{2}"/>
  +          <map:parameter name="full-filename" value="{1}/{2}"/>
  +        </map:call>
         </map:match>
   
      <map:match pattern="**resources/script.js">
  @@ -104,6 +107,17 @@
        <map:serialize type="svg2jpeg"/>
      </map:match>
   
  +    </map:pipeline>
  +
  +     <!-- All examples are located under the examples/ directory, and
  +     are standalone samples, with their own sitemap. The following
  +     generic mount operation loads them on demand. -->
  +    <map:pipeline>
  +      <map:match pattern="examples/*/**">
  +        <map:mount uri-prefix="examples/{1}"
  +                   src="examples/{1}/sitemap.xmap"
  +                   check-reload="yes"/>
  +      </map:match>
       </map:pipeline>
   
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message