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/resources/conf sitemap.xmap
Date Sat, 07 Dec 2002 17:29:13 GMT
nicolaken    2002/12/07 09:29:13

  Modified:    src/resources/conf sitemap.xmap
  Added:       src/resources/library/xslt changes2rss.xsl
  Removed:     src/resources/skins/krysalis-site/xslt/html changes2rss.xsl
  Log:
  Added rss capability to changes generation.
  
  Revision  Changes    Path
  1.1                  xml-forrest/src/resources/library/xslt/changes2rss.xsl
  
  Index: changes2rss.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   
       <xsl:output method = "xml"
                   version="1.0" 
                   encoding="ISO-8859-1" 
                   indent="yes"  
                   doctype-public="-//Netscape Communications//DTD RSS 0.91//EN"         
         
                   doctype-system="http://my.netscape.com/publish/formats/rss-0.91.dtd"  
                
                   />
                   
     <xsl:template match="status">
  
    
        <rss version="0.91">
           <channel>
              <title>Project Changes</title>
  
              <link>http://www.krysalis.org/centipede/changes.html</link>
  
              <description>Project Changes</description>
  
              <language>en-us</language>
  
              <xsl:for-each select="changes/release[1]/action">
                 <item>
                    <title>
                       <xsl:value-of select="@type" />
  
                       <xsl:if test="@context">about 
                       <xsl:value-of select="@context" />
                       </xsl:if>
  
                       <xsl:if test="@type='fix'">(fixes bug 
                       <xsl:value-of select="@fixes-bug" />
  
                       )</xsl:if>
                    </title>
  
                    <link>http://www.krysalis.org/centipede/changes.html</link>
  
                    <description>
                    <xsl:value-of select="@type" />
  
                    by 
                    <xsl:value-of select="@dev" />
  
                    <xsl:if test="@context">about 
                    <xsl:value-of select="@context" />
                    </xsl:if>
  
                    . 
                    <xsl:if test="@type='fix'">It fixes bug 
                    <xsl:value-of select="@fixes-bug" />
  
                    .</xsl:if>
  
                    . 
                    <xsl:if test="@due-to">Thanks to 
                    <xsl:value-of select="@due-to" />
  
                    .</xsl:if> 
                    
                    Message: <xsl:value-of select="." />
                    
                    </description>
                 </item>
              </xsl:for-each>
           </channel>
        </rss>
     </xsl:template>
  </xsl:stylesheet>
  
  
  
  
  1.41      +12 -0     xml-forrest/src/resources/conf/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/conf/sitemap.xmap,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- sitemap.xmap	28 Nov 2002 20:50:19 -0000	1.40
  +++ sitemap.xmap	7 Dec 2002 17:29:12 -0000	1.41
  @@ -48,6 +48,12 @@
        <encoding>ISO-8859-1</encoding>
      </map:serializer>
   
  +   <map:serializer name="rss091"    mime-type="text/xml"         src="org.apache.cocoon.serialization.XMLSerializer">
  +     <encoding>ISO-8859-1</encoding>
  +     <doctype-public>-//Netscape Communications//DTD RSS 0.91//EN</doctype-public>
  +     <doctype-system>http://my.netscape.com/publish/formats/rss-0.91.dtd</doctype-system>
  +   </map:serializer>
  +   
      <map:serializer name="fo2pdf"
                   src="org.apache.cocoon.serialization.FOPSerializer"
                   mime-type="application/pdf"/>
  @@ -435,6 +441,12 @@
       <map:serialize type="fo2pdf"/>
      </map:match>
   
  +   <map:match pattern="changes.rss">
  +     <map:generate type="file-nolabel" src="status.xml"/>
  +     <map:transform src="library/xslt/changes2rss.xsl" label="content"/>
  +     <map:serialize type="rss091"/>
  +   </map:match>
  +   
      <map:match pattern="todo.pdf">
       <map:generate type="file-nolabel" src="status.xml"/>
       <map:transform src="library/xslt/todo2document.xsl" label="content"/>
  
  
  

Mime
View raw message