You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by iv...@apache.org on 2002/09/22 05:14:22 UTC

cvs commit: xml-cocoon2/src/webapp/samples sitemap.xmap

ivelin      2002/09/21 20:14:22

  Modified:    src/webapp/samples sitemap.xmap
  Log:
  fixed an inadvertent checked-in
  
  Revision  Changes    Path
  1.21      +90 -30    xml-cocoon2/src/webapp/samples/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/sitemap.xmap,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- sitemap.xmap	21 Sep 2002 22:57:19 -0000	1.20
  +++ sitemap.xmap	22 Sep 2002 03:14:22 -0000	1.21
  @@ -88,16 +88,16 @@
     orthogonal to pipelines. Please refer to the docs.
   -->
    <map:views>
  -  <map:view from-label="content" name="content">
  +  <map:view name="content" from-label="content">
      <map:serialize type="xml"/>
     </map:view>
   
  -  <map:view from-label="data" name="pretty-content">
  +  <map:view name="pretty-content" from-label="data">
       <map:transform src="common/style/xsl/html/simple-xml2html.xsl"/>
       <map:serialize type="html"/>
     </map:view>
     
  -  <map:view from-position="last" name="links">
  +  <map:view name="links" from-position="last">
      <map:serialize type="links"/>
     </map:view>
   
  @@ -229,7 +229,7 @@
   
       <map:match pattern="welcome">
         <map:generate src="samples.xml"/>
  -      <map:transform src="common/style/xsl/html/simple-samples2html.xsl" type="xalan"/>
  +      <map:transform type="xalan" src="common/style/xsl/html/simple-samples2html.xsl"/>
         <map:serialize/>
       </map:match>
     </map:pipeline>
  @@ -326,21 +326,7 @@
         <map:generate src="xmldb:xindice://localhost:4080/db/{1}"/>
         <map:serialize type="xml"/>
       </map:match>
  -  
  -
  -    <!-- Mount search pages sitemap, for using indexing & searching -->
  -    <map:match pattern="search/**">
  -      <map:mount check-reload="yes" src="search/" uri-prefix="search"/>
  -    </map:match>
  -
  -
  -    <!-- =============== Parent Component Manager ====================== -->
  -    <map:match pattern="parentcm">
  -      <map:generate src="{1}" type="parentcm"/>
  -      <map:transform src="stylesheets/parentcm/time.xsl"/>
  -      <map:serialize/>
  -    </map:match>
  -</map:pipeline>
  +  </map:pipeline>
   
     <!-- main samples pipeline -->
      <map:pipeline>   
  @@ -374,7 +360,7 @@
         </map:otherwise>
       </map:select>
       -->
  -    <map:transform src="stylesheets/simple-samples2html.xsl" type="xslt"/>
  +    <map:transform type="xslt" src="stylesheets/simple-samples2html.xsl"/>
       <!-- uncomment the following if you want to use Xalan's interpreter as the XSLT processor -->
       <!-- <map:transform type="xalan" src="stylesheets/simple-samples2html.xsl"/> -->
       <!--
  @@ -404,6 +390,45 @@
   
   
   
  +   <map:match pattern="welcome-svg">
  +    <map:generate src="docs/samples/samples.xml"/>
  +    <map:transform src="stylesheets/svg-samples2html.xsl"/>
  +    <map:transform type="extractor"/>
  +    <!-- 
  +       Here, several transformers are needed to obtain the desired
  +       result. Note, that the above is not the default transformer but
  +       one named "extractor". Interestingly enough, this transformer
  +       does not need any additional configuration or input.
  +       
  +       If we look at it's javadocs it says:
  +
  +       "[...] The transformation half of the FragmentExtractor. This
  +       transformer sieves an incoming stream of xml with embedded SVG
  +       images and replaces the images with an xlink locator pointing
  +       to the image. [...]"
  +
  +       So, this interacts with the fragment below, doing the actual
  +       generating.
  +    -->
  +    <map:transform src="stylesheets/fragment-extractor.xsl"/>
  +    <map:serialize/>
  +   </map:match>
  +
  +   <map:match pattern="welcome-svg-images/*.png">
  +    <map:generate src="{1}" type="extractor"/>
  +    <!--
  +       Again, citing the javadocs:
  +
  +       "[...] The generation half of
  +       FragmentExtractor. FragmentExtractor is a transformer-generator
  +       pair which is designed to allow sitemap managers to extract
  +       certain nodes from a SAX stream and move them into a separate
  +       pipeline. The main use for this is to extract inline SVG images
  +       and serve them up through a separate pipeline, usually
  +       serializing them to PNG or JPEG format first. [...]"
  +    -->
  +    <map:serialize type="svg2png"/>
  +   </map:match>
   
   
   
  @@ -444,7 +469,23 @@
       <map:serialize type="xml"/>
      </map:match>
   
  +   <map:match pattern="hello.svg">
  +    <map:generate src="docs/samples/hello-page.xml"/>
  +    <map:transform src="stylesheets/page/simple-page2svg.xsl"/>
  +    <map:serialize type="svg2jpeg"/>
  +   </map:match>
   
  +   <map:match pattern="hello.wrl">
  +    <map:generate src="docs/samples/hello-page.xml"/>
  +    <map:transform src="stylesheets/page/simple-page2vrml.xsl"/>
  +    <map:serialize type="vrml"/>
  +   </map:match>
  +
  +   <map:match pattern="hello.pdf">
  +    <map:generate src="docs/samples/hello-page.xml"/>
  +    <map:transform src="stylesheets/page/simple-page2fo.xsl"/>
  +    <map:serialize type="fo2pdf"/>
  +   </map:match>
   
      <map:match pattern="redirect">
       <map:act type="request">
  @@ -545,6 +586,15 @@
   
      <!-- ================  Static  =========================== -->
   
  +   <map:match pattern="fo">
  +    <map:generate src="docs/samples/fo/readme.fo"/>
  +    <map:serialize type="fo2pdf"/>
  +   </map:match>
  +
  +   <map:match pattern="svg">
  +    <map:generate src="docs/samples/svg/henryV.svg"/>
  +    <map:serialize type="svg2png"/>
  +   </map:match>
   
      <map:match pattern="scripts/*">
       <map:generate src="docs/samples/scripts/{1}" type="script"/>
  @@ -552,6 +602,14 @@
       <map:serialize type="html"/>
      </map:match>
   
  +   <map:match pattern="templates/*">
  +    <map:generate src="templates/{1}" type="velocity">
  +    <map:parameter name="name" value="Velocity"/>
  +    <map:parameter name="project" value="Cocoon"/>
  +    </map:generate>
  +    <map:transform src="stylesheets/page/simple-page2html.xsl"/>
  +    <map:serialize type="html"/>
  +   </map:match>
   
      <map:match pattern="slides/slides">
       <map:call resource="slides"/>
  @@ -876,37 +934,37 @@
   
      <map:match pattern="welcome">
       <map:generate src="samples.xml"/>
  -    <map:transform src="common/style/xsl/html/simple-samples2html.xsl" type="xalan"/>
  +    <map:transform type="xalan" src="common/style/xsl/html/simple-samples2html.xsl"/>
       <map:serialize/>
      </map:match>
   
      <map:match pattern="scratchpad">
       <map:generate src="scratchpad-samples.xml"/>
  -    <map:transform src="common/style/xsl/html/simple-samples2html.xsl" type="xalan"/>
  +    <map:transform type="xalan" src="common/style/xsl/html/simple-samples2html.xsl"/>
       <map:serialize/>
      </map:match>
     
      <!-- ========================= Server ================================ -->
   
      <map:match pattern="**favicon.ico">
  -    <map:read mime-type="application/ico" src="common/resources/icons/cocoon.ico"/>
  +    <map:read src="common/resources/icons/cocoon.ico" mime-type="application/ico"/>
      </map:match>
      
      <!-- ================== Common ======================= -->
      <map:match pattern="*.css">
  -    <map:read mime-type="text/css" src="common/style/css/{1}.css"/>
  +    <map:read src="common/style/css/{1}.css" mime-type="text/css"/>
      </map:match>
   
      <map:match pattern="images/*.gif">
  -    <map:read mime-type="image/gif" src="common/resources/images/{1}.gif"/>
  +    <map:read src="common/resources/images/{1}.gif" mime-type="image/gif"/>
      </map:match>
   
      <map:match pattern="images/*.jpg">
  -    <map:read mime-type="image/jpg" src="common/resources/images/{1}.jpg"/>
  +    <map:read src="common/resources/images/{1}.jpg" mime-type="image/jpg"/>
      </map:match>
   
      <map:match pattern="images/*.png">
  -    <map:read mime-type="image/png" src="common/resources/images/{1}.png"/>
  +    <map:read src="common/resources/images/{1}.png" mime-type="image/png"/>
      </map:match>
   
      <!-- ================== Common fallthrough ===================== -->
  @@ -927,17 +985,19 @@
      
      <!-- samples automount -->  
      <map:match pattern="*/**">
  -     <map:mount check-reload="yes" src="{1}/" uri-prefix="{1}"/>
  +     <map:mount uri-prefix="{1}" src="{1}/" check-reload="yes"/>
      </map:match>
           
      <map:handle-errors>
       <!-- FIXME -->
       <!--<map:transform src="common/style/xsl/html/error2html.xsl"/>-->
       <map:transform src="context://samples/common/style/xsl/html/error2html.xsl"/>
  -    <map:serialize status-code="500" type="html"/>
  +    <map:serialize type="html" status-code="500"/>
      </map:handle-errors>
   
     </map:pipeline>
    </map:pipelines>
   
  -</map:sitemap><!-- end of file -->
  \ No newline at end of file
  +</map:sitemap>
  +
  +<!-- end of file -->
  
  
  

----------------------------------------------------------------------
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