forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: xml-forrest/src/core/context sitemap.xmap
Date Sun, 18 Jan 2004 21:39:57 GMT
nicolaken    2004/01/18 13:39:57

  Modified:    src/core/context sitemap.xmap
  Log:
  Add support for svg output of the site pages.
  
  Also make the common stylesheets for svg and fo be used
  if not present in the specific skin.
  
  Revision  Changes    Path
  1.8       +42 -2     xml-forrest/src/core/context/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/core/context/sitemap.xmap,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- sitemap.xmap	13 Jan 2004 14:56:27 -0000	1.7
  +++ sitemap.xmap	18 Jan 2004 21:39:57 -0000	1.8
  @@ -89,6 +89,12 @@
         <map:serializer name="links" src="org.apache.cocoon.serialization.LinkSerializer">
           <encoding>ISO-8859-1</encoding>
         </map:serializer>
  +      
  +      <map:serializer name="svgxml" src="org.apache.cocoon.serialization.XMLSerializer"
mime-type="image/svg+xml">
  +        <doctype-public>-//W3C//DTD SVG 1.0//EN</doctype-public>
  +        <doctype-system>http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd</doctype-system>
  +      </map:serializer>
  +      
        <!--
         <map:serializer mime-type="application/x-shockwave-flash" name="swf" src="org.apache.cocoon.serialization.SWFSerializer"/>
         <map:serializer mime-type="application/msword" name="fo2rtf" src="org.apache.cocoon.serialization.RTFSerializer"/>
  @@ -351,16 +357,50 @@
                 <map:parameter name="xmlbasedir" value="{project:content.xdocs}{1}"/>
               </map:transform>
             </map:when>
  -          <map:otherwise>
  +          <map:when test="{forrest:home}context/skins/{forrest:skin}/xslt/fo/document2fo.xsl">
               <map:transform src="{forrest:home}context/skins/{forrest:skin}/xslt/fo/document2fo.xsl">
                 <map:parameter name="ctxbasedir" value="{realpath:.}/"/>
                 <map:parameter name="xmlbasedir" value="{project:content.xdocs}{1}"/>
               </map:transform>
  +          </map:when>
  +          <map:otherwise>
  +            <map:transform src="{forrest:home}context/skins/common/xslt/fo/document2fo.xsl">
  +              <map:parameter name="ctxbasedir" value="{realpath:.}/"/>
  +              <map:parameter name="xmlbasedir" value="{project:content.xdocs}{1}"/>
  +            </map:transform>
             </map:otherwise>
           </map:select>
           <map:serialize type="fo2pdf"/>
         </map:match>
   
  +      <map:match type="regexp" pattern="^(.*?)([^/]*).svg$">
  +        <map:generate src="cocoon:/{1}{2}.xml"/>
  +        <!-- <map:transform type="idgen"/> -->
  +        <map:transform type="xinclude"/>
  +        <map:transform type="linkrewriter" src="cocoon://{1}linkmap-{2}.svg"/>
  +        <map:select type="exists">
  +          <map:when test="{project:skins-dir}{forrest:skin}/xslt/svg/document2svg.xsl">
  +            <map:transform src="{project:skins-dir}{forrest:skin}/xslt/svg/document2svg.xsl">
  +              <map:parameter name="ctxbasedir" value="{realpath:.}/"/>
  +              <map:parameter name="xmlbasedir" value="{project:content.xdocs}{1}"/>
  +            </map:transform>
  +          </map:when>
  +          <map:when test="{forrest:home}context/skins/{forrest:skin}/xslt/svg/document2svg.xsl">
  +            <map:transform src="{forrest:home}context/skins/{forrest:skin}/xslt/svg/document2svg.xsl">
  +              <map:parameter name="ctxbasedir" value="{realpath:.}/"/>
  +              <map:parameter name="xmlbasedir" value="{project:content.xdocs}{1}"/>
  +            </map:transform>
  +          </map:when>
  +          <map:otherwise>
  +            <map:transform src="{forrest:home}context/skins/common/xslt/svg/document2svg.xsl">
  +              <map:parameter name="ctxbasedir" value="{realpath:.}/"/>
  +              <map:parameter name="xmlbasedir" value="{project:content.xdocs}{1}"/>
  +            </map:transform>
  +          </map:otherwise>
  +        </map:select>
  +        <map:serialize type="svgxml"/>
  +      </map:match>
  +      
         <map:match pattern="**changes.rss">
           <map:mount uri-prefix="" src="status.xmap" check-reload="yes" />
         </map:match>
  
  
  

Mime
View raw message