You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2007/03/02 01:06:03 UTC

svn commit: r513557 - in /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap: input.xmap resources/stylesheets/descriptorIndex-to-indexByCategory.xsl resources/stylesheets/descriptorIndex-to-indexByLang.xsl

Author: rgardler
Date: Thu Mar  1 16:05:57 2007
New Revision: 513557

URL: http://svn.apache.org/viewvc?view=rev&rev=513557
Log:
Go straight to XDoc

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/input.xmap
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-indexByCategory.xsl
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-indexByLang.xsl

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/input.xmap
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/input.xmap?view=diff&rev=513557&r1=513556&r2=513557
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/input.xmap (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/input.xmap Thu Mar  1 16:05:57 2007
@@ -104,7 +104,6 @@
       <map:match pattern="projectDetails/index/by*.xml">
         <map:generate type="file" src="cocoon:/projectDetails/descriptorIndex.xml" />
         <map:transform src="{lm:doap.transform.descriptorIndex.indexBy{1}}"/>
-        <map:transform src="{lm:transform.html.document}"/>
         <map:serialize type="xml-document"/>
       </map:match> 
       
@@ -113,7 +112,6 @@
         <map:transform src="{lm:doap.transform.descriptorIndex.indexBy{1}}">
           <map:parameter name="filter" value="{2}"/>
         </map:transform>
-        <map:transform src="{lm:transform.html.document}"/>
         <map:serialize type="xml-document"/>
       </map:match>
       

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-indexByCategory.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-indexByCategory.xsl?view=diff&rev=513557&r1=513556&r2=513557
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-indexByCategory.xsl (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-indexByCategory.xsl Thu Mar  1 16:05:57 2007
@@ -27,19 +27,18 @@
   <xsl:key name="kDistinctCategory" match="doap:category" use="@rdf:resource"/>
   
   <xsl:param name="filter"/>
-  <xsl:param name="categoryURL">http://projects.apache.org/category/</xsl:param>
   
   <xsl:template match="/">
-    <html>
-      <head>
+    <document>
+      <header>
         <title>Projects Indexed by Category</title>
-      </head>
+      </header>
       <body>
         <xsl:choose>
           <xsl:when test="$filter">
             <section>
               <title>Index of projects in the category of <xsl:value-of select="$filter"/></title>
-              <xsl:apply-templates select="//descriptor[descendant::doap:category/@rdf:resource = concat($categoryURL, $filter)]"/>
+              <xsl:apply-templates select="//descriptor[descendant::doap:category/@rdf:resource = $filter]"/>
             </section>
           </xsl:when>
           <xsl:otherwise>
@@ -47,7 +46,7 @@
               <xsl:sort select="@rdf:resource"/>
               <xsl:variable name="category" select="@rdf:resource"/>
               <section>
-                  <title><xsl:value-of select="substring-after($filter, $categoryURL)"/></title>
+                  <title><xsl:value-of select="$category"/></title>
                   <xsl:apply-templates select="//descriptor[descendant::doap:category[@rdf:resource = $category]]"/>
               </section>
             </xsl:for-each>
@@ -61,7 +60,7 @@
           </section>
         </xsl:if>
       </body>
-    </html>
+    </document>
   </xsl:template>
 </xsl:stylesheet>
 

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-indexByLang.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-indexByLang.xsl?view=diff&rev=513557&r1=513556&r2=513557
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-indexByLang.xsl (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-indexByLang.xsl Thu Mar  1 16:05:57 2007
@@ -29,22 +29,26 @@
   <xsl:param name="filter"/>
   
   <xsl:template match="/">
-    <html>
-      <head>
+    <document>
+      <header>
         <title>Projects Indexed by Language</title>
-      </head>
+      </header>
       <body>
         <xsl:choose>
           <xsl:when test="$filter">
-            <h1>Index of projects using <xsl:value-of select="$filter"/></h1>
-            <xsl:apply-templates select="//descriptor[descendant::doap:programming-language = $filter]"/>
+            <section>
+              <title>Index of projects using <xsl:value-of select="$filter"/></title>
+              <xsl:apply-templates select="//descriptor[descendant::doap:programming-language = $filter]"/>
+            </section>
           </xsl:when>
           <xsl:otherwise>
             <xsl:for-each select="//doap:programming-language[generate-id() = generate-id(key('kDistinctProgLang',.))]">
               <xsl:sort select="."/>
               <xsl:variable name="language" select="."/>
-              <h1><xsl:value-of select="$language"/></h1>
-              <xsl:apply-templates select="//descriptor[descendant::doap:programming-language = $language]"/>
+              <section>
+                <title><xsl:value-of select="$language"/></title>
+                <xsl:apply-templates select="//descriptor[descendant::doap:programming-language = $language]"/>
+              </section>
             </xsl:for-each>
           </xsl:otherwise>
         </xsl:choose>
@@ -54,7 +58,7 @@
           <xsl:apply-templates select="//descriptor[not(descendant::doap:programming-language)]"/>
         </xsl:if>
       </body>
-    </html>
+    </document>
   </xsl:template>
 </xsl:stylesheet>