forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r522871 [1/2] - in /forrest/trunk: plugins/org.apache.forrest.plugin.output.Text/ whiteboard/plugins/org.apache.forrest.plugin.input.doap/ whiteboard/plugins/org.apache.forrest.plugin.input.doap/lib/ whiteboard/plugins/org.apache.forrest.pl...
Date Tue, 27 Mar 2007 11:46:16 GMT
Author: crossley
Date: Tue Mar 27 04:46:13 2007
New Revision: 522871

URL: http://svn.apache.org/viewvc?view=rev&rev=522871
Log:
Fix windows line-endings and do 'svn propset eol:style native'.

Modified:
    forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/default.plugin.properties.xml   (contents, props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/build.xml   (props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/doap.xml   (contents, props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/forrest.properties   (props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/input.xmap   (props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/lib/readme.txt   (props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/locationmap.xml   (props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-indexByCategory.xsl   (contents, props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-indexByCommon.xsl   (contents, props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-indexByLang.xsl   (contents, props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-siteSnippet.xsl   (contents, props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-siteSnippet_byCategory.xsl   (contents, props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-siteSnippet_byLang.xsl   (contents, props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl   (contents, props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/locationmap-to-descriptorIndex.xsl   (contents, props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/doap-embedded.ft   (contents, props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/classes/CatalogManager.properties   (props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/doap/doap-forrest.xml   (contents, props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/locationmap.xml   (props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/images/group.svg   (props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/images/project.svg   (props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/index.xml   (props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/site.xml   (props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/tabs.xml   (props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/resources/themes/pelt.fv   (props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/skinconf.xml   (props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/java/readme.txt   (props changed)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/status.xml   (props changed)

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/default.plugin.properties.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/default.plugin.properties.xml?view=diff&rev=522871&r1=522870&r2=522871
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/default.plugin.properties.xml (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/default.plugin.properties.xml Tue Mar 27 04:46:13 2007
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<properties>
-       <property name="text.page.width" value="76"/>
+<?xml version="1.0" encoding="UTF-8"?>
+<properties>
+       <property name="text.page.width" value="76"/>
 </properties>

Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.output.Text/default.plugin.properties.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/doap.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/doap.xml?view=diff&rev=522871&r1=522870&r2=522871
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/doap.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/doap.xml Tue Mar 27 04:46:13 2007
@@ -1,35 +1,35 @@
-<?xml version="1.0" encoding="utf-8"?>
-<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:doap="http://usefulinc.com/ns/doap#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:admin="http://webns.net/mvcb/" xml:lang="en">
-  <doap:Project>
-    <doap:name>org.apache.forrest.plugin.input.projectInfo</doap:name>
-    <doap:shortname>projectInfo</doap:shortname>
-    <doap:homepage rdf:resource="http://forrest.apache.org/plugins/org.apache.forrest.plugin.input.projectInfo"/>
-    <doap:description>This plugin extends Apache Forrest to generate project info &#13;
-   from various configuration files. Current features include&#13;
-   a project details page (lists important information such as&#13;
-   mailing list addresses), recent changes, todo list and &#13;
-   release notes.</doap:description>
-    <doap:shortdesc>Integrate DOAP files in a Forrest content object.</doap:shortdesc>
-    <doap:bug-database rdf:resource="http://issues.apache.org/jira/browse/FOR"/>
-    <doap:mailing-list rdf:resource="http://forrest.apache.org/mail-lists.html"/>
-    <doap:programming-language>XML</doap:programming-language>
-    <doap:programming-language>XSLT</doap:programming-language>
-    <doap:license rdf:resource="http://usefulinc.com/doap/licenses/asl20"/>
-    <doap:download-page rdf:resource="http://forrest.apache.org/pluginDocs/plugins_0_80/index.html"/>
-    <doap:maintainer>
-      <foaf:Person>
-        <foaf:name>Apache Forrest Community</foaf:name>
-        <foaf:mbox_sha1sum>eca6cfabc292eea1fcd4f9e6dd08097e2bcab459</foaf:mbox_sha1sum>
-        <foaf:homepage rdf:resource="http://forrest.apache.org/who.html"/>
-      </foaf:Person>
-    </doap:maintainer>
-    <doap:repository>
-      <doap:SVNRepository>
-        <doap:browse rdf:resource="http://svn.apache.org/repos/asf/forrest/trunk/plugins/org.apache.forrest.plugin.input.doap/"/>
-        <doap:location rdf:resource="http://svn.apache.org/repos/asf/forrest/trunk/plugins/org.apache.forrest.plugin.input.doap/"/>
-      </doap:SVNRepository>
-    </doap:repository>
-  </doap:Project>
-</rdf:RDF>
-
-
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:doap="http://usefulinc.com/ns/doap#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:admin="http://webns.net/mvcb/" xml:lang="en">
+  <doap:Project>
+    <doap:name>org.apache.forrest.plugin.input.projectInfo</doap:name>
+    <doap:shortname>projectInfo</doap:shortname>
+    <doap:homepage rdf:resource="http://forrest.apache.org/plugins/org.apache.forrest.plugin.input.projectInfo"/>
+    <doap:description>This plugin extends Apache Forrest to generate project info &#13;
+   from various configuration files. Current features include&#13;
+   a project details page (lists important information such as&#13;
+   mailing list addresses), recent changes, todo list and &#13;
+   release notes.</doap:description>
+    <doap:shortdesc>Integrate DOAP files in a Forrest content object.</doap:shortdesc>
+    <doap:bug-database rdf:resource="http://issues.apache.org/jira/browse/FOR"/>
+    <doap:mailing-list rdf:resource="http://forrest.apache.org/mail-lists.html"/>
+    <doap:programming-language>XML</doap:programming-language>
+    <doap:programming-language>XSLT</doap:programming-language>
+    <doap:license rdf:resource="http://usefulinc.com/doap/licenses/asl20"/>
+    <doap:download-page rdf:resource="http://forrest.apache.org/pluginDocs/plugins_0_80/index.html"/>
+    <doap:maintainer>
+      <foaf:Person>
+        <foaf:name>Apache Forrest Community</foaf:name>
+        <foaf:mbox_sha1sum>eca6cfabc292eea1fcd4f9e6dd08097e2bcab459</foaf:mbox_sha1sum>
+        <foaf:homepage rdf:resource="http://forrest.apache.org/who.html"/>
+      </foaf:Person>
+    </doap:maintainer>
+    <doap:repository>
+      <doap:SVNRepository>
+        <doap:browse rdf:resource="http://svn.apache.org/repos/asf/forrest/trunk/plugins/org.apache.forrest.plugin.input.doap/"/>
+        <doap:location rdf:resource="http://svn.apache.org/repos/asf/forrest/trunk/plugins/org.apache.forrest.plugin.input.doap/"/>
+      </doap:SVNRepository>
+    </doap:repository>
+  </doap:Project>
+</rdf:RDF>
+
+

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/doap.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/forrest.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/input.xmap
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/lib/readme.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/locationmap.xml
------------------------------------------------------------------------------
    svn:eol-style = native

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=522871&r1=522870&r2=522871
==============================================================================
--- 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 Tue Mar 27 04:46:13 2007
@@ -1,66 +1,66 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
--->
-<xsl:stylesheet version = "1.0"
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-  xmlns:atom="http://www.w3.org/2005/Atom"
-  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
-  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
-  xmlns:doap="http://usefulinc.com/ns/doap#">
-  
-  <xsl:include href="descriptorIndex-to-indexByCommon.xsl"/>
-  
-  <xsl:key name="kDistinctCategory" match="doap:category" use="@rdf:resource"/>
-  
-  <xsl:param name="filter"/>
-  
-  <xsl:template match="/">
-    <document>
-      <header>
-        <title>Projects Indexed by Category</title>
-      </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 = $filter]"/>
-            </section>
-          </xsl:when>
-          <xsl:otherwise>
-            <xsl:for-each select="//doap:category[generate-id() = generate-id(key('kDistinctCategory', @rdf:resource))]">
-              <xsl:sort select="@rdf:resource"/>
-              <xsl:variable name="category" select="@rdf:resource"/>
-              <section>
-                  <title><xsl:value-of select="$category"/></title>
-                  <xsl:apply-templates select="//descriptor[descendant::doap:category[@rdf:resource = $category]]"/>
-              </section>
-            </xsl:for-each>
-          </xsl:otherwise>
-        </xsl:choose>
-        
-        <xsl:if test="//descriptor[not(descendant::doap:category)]">
-          <section>
-              <title>Uncategorised</title>
-              <xsl:apply-templates select="//descriptor[not(descendant::doap:category)]"/>
-          </section>
-        </xsl:if>
-      </body>
-    </document>
-  </xsl:template>
-</xsl:stylesheet>
-
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<xsl:stylesheet version = "1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:atom="http://www.w3.org/2005/Atom"
+  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
+  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
+  xmlns:doap="http://usefulinc.com/ns/doap#">
+  
+  <xsl:include href="descriptorIndex-to-indexByCommon.xsl"/>
+  
+  <xsl:key name="kDistinctCategory" match="doap:category" use="@rdf:resource"/>
+  
+  <xsl:param name="filter"/>
+  
+  <xsl:template match="/">
+    <document>
+      <header>
+        <title>Projects Indexed by Category</title>
+      </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 = $filter]"/>
+            </section>
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:for-each select="//doap:category[generate-id() = generate-id(key('kDistinctCategory', @rdf:resource))]">
+              <xsl:sort select="@rdf:resource"/>
+              <xsl:variable name="category" select="@rdf:resource"/>
+              <section>
+                  <title><xsl:value-of select="$category"/></title>
+                  <xsl:apply-templates select="//descriptor[descendant::doap:category[@rdf:resource = $category]]"/>
+              </section>
+            </xsl:for-each>
+          </xsl:otherwise>
+        </xsl:choose>
+        
+        <xsl:if test="//descriptor[not(descendant::doap:category)]">
+          <section>
+              <title>Uncategorised</title>
+              <xsl:apply-templates select="//descriptor[not(descendant::doap:category)]"/>
+          </section>
+        </xsl:if>
+      </body>
+    </document>
+  </xsl:template>
+</xsl:stylesheet>
+

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-indexByCategory.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-indexByCommon.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-indexByCommon.xsl?view=diff&rev=522871&r1=522870&r2=522871
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-indexByCommon.xsl (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-indexByCommon.xsl Tue Mar 27 04:46:13 2007
@@ -1,86 +1,86 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
--->
-<xsl:stylesheet version = "1.0"
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-  xmlns:atom="http://www.w3.org/2005/Atom"
-  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
-  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
-  xmlns:doap="http://usefulinc.com/ns/doap#">
-    
-  <xsl:param name="documentPath"/>  
-    
-  <xsl:template match="descriptor">
-    <xsl:variable name="pathToRoot">
-      <xsl:call-template name="dotdots">
-        <xsl:with-param name="path"><xsl:value-of select="$documentPath"/></xsl:with-param>
-      </xsl:call-template>
-    </xsl:variable>
-    
-    <xsl:variable name="name">
-      <xsl:choose>
-        <xsl:when test="descendant::doap:Project/doap:shortname">
-          <xsl:value-of select="descendant::doap:Project/doap:shortname"/>
-        </xsl:when>
-        <xsl:otherwise>
-          <xsl:value-of select="descendant::doap:Project/doap:name"/>
-        </xsl:otherwise>
-      </xsl:choose>
-    </xsl:variable>
-      
-    <div>
-      <p>
-        <a>
-          <xsl:attribute name="href"><xsl:value-of select="$pathToRoot"/><xsl:value-of select="@href-noext"/>.html</xsl:attribute>
-          <xsl:value-of select="$name"/>
-        </a>
-        <xsl:text> </xsl:text>
-        <xsl:choose>
-          <xsl:when test="descendant::doap:Project/doap:shortdesc">
-            <xsl:value-of select="descendant::doap:Project/doap:shortdesc"/>
-          </xsl:when>
-          <xsl:otherwise>
-            <xsl:value-of select="descendant::doap:Project/doap:description"/>
-          </xsl:otherwise>
-        </xsl:choose>
-      </p>
-    </div>
-  </xsl:template>
-  
-  <!-- FIXME: this should come from include of dotdots.xsl in forest core -->
-  <xsl:template name="dotdots">
-    <xsl:param name="path"/>
-    <xsl:variable name="dirs" select="normalize-space(translate(concat($path, 'x'), ' /\', '_  '))"/>
-    <!-- The above does the following:
-       o Adds a trailing character to the path. This prevents us having to deal
-         with the special case of ending with '/'
-       o Translates all directory separators to ' ', and normalize spaces,
-         cunningly eliminating duplicate '//'s. We also translate any real
-         spaces into _ to preserve them.
-    -->
-    <xsl:variable name="remainder" select="substring-after($dirs, ' ')"/>
-    <xsl:if test="$remainder">
-      <xsl:text>../</xsl:text>
-      <xsl:call-template name="dotdots">
-        <xsl:with-param name="path" select="translate($remainder, ' ', '/')"/>
-        <!-- Translate back to /'s because that's what the template expects. -->
-      </xsl:call-template>
-    </xsl:if>
-  </xsl:template>
-  
-</xsl:stylesheet>
-
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<xsl:stylesheet version = "1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:atom="http://www.w3.org/2005/Atom"
+  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
+  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
+  xmlns:doap="http://usefulinc.com/ns/doap#">
+    
+  <xsl:param name="documentPath"/>  
+    
+  <xsl:template match="descriptor">
+    <xsl:variable name="pathToRoot">
+      <xsl:call-template name="dotdots">
+        <xsl:with-param name="path"><xsl:value-of select="$documentPath"/></xsl:with-param>
+      </xsl:call-template>
+    </xsl:variable>
+    
+    <xsl:variable name="name">
+      <xsl:choose>
+        <xsl:when test="descendant::doap:Project/doap:shortname">
+          <xsl:value-of select="descendant::doap:Project/doap:shortname"/>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:value-of select="descendant::doap:Project/doap:name"/>
+        </xsl:otherwise>
+      </xsl:choose>
+    </xsl:variable>
+      
+    <div>
+      <p>
+        <a>
+          <xsl:attribute name="href"><xsl:value-of select="$pathToRoot"/><xsl:value-of select="@href-noext"/>.html</xsl:attribute>
+          <xsl:value-of select="$name"/>
+        </a>
+        <xsl:text> </xsl:text>
+        <xsl:choose>
+          <xsl:when test="descendant::doap:Project/doap:shortdesc">
+            <xsl:value-of select="descendant::doap:Project/doap:shortdesc"/>
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:value-of select="descendant::doap:Project/doap:description"/>
+          </xsl:otherwise>
+        </xsl:choose>
+      </p>
+    </div>
+  </xsl:template>
+  
+  <!-- FIXME: this should come from include of dotdots.xsl in forest core -->
+  <xsl:template name="dotdots">
+    <xsl:param name="path"/>
+    <xsl:variable name="dirs" select="normalize-space(translate(concat($path, 'x'), ' /\', '_  '))"/>
+    <!-- The above does the following:
+       o Adds a trailing character to the path. This prevents us having to deal
+         with the special case of ending with '/'
+       o Translates all directory separators to ' ', and normalize spaces,
+         cunningly eliminating duplicate '//'s. We also translate any real
+         spaces into _ to preserve them.
+    -->
+    <xsl:variable name="remainder" select="substring-after($dirs, ' ')"/>
+    <xsl:if test="$remainder">
+      <xsl:text>../</xsl:text>
+      <xsl:call-template name="dotdots">
+        <xsl:with-param name="path" select="translate($remainder, ' ', '/')"/>
+        <!-- Translate back to /'s because that's what the template expects. -->
+      </xsl:call-template>
+    </xsl:if>
+  </xsl:template>
+  
+</xsl:stylesheet>
+

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-indexByCommon.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

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=522871&r1=522870&r2=522871
==============================================================================
--- 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 Tue Mar 27 04:46:13 2007
@@ -1,66 +1,66 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
--->
-<xsl:stylesheet version = "1.0"
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-  xmlns:atom="http://www.w3.org/2005/Atom"
-  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
-  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
-  xmlns:doap="http://usefulinc.com/ns/doap#">
-  
-  <xsl:include href="descriptorIndex-to-indexByCommon.xsl"/>
-  
-  <xsl:key name="kDistinctProgLang" match="doap:programming-language" use="."/>
-  
-  <xsl:param name="filter"/>
-  
-  <xsl:template match="/">
-    <document>
-      <header>
-        <title>Projects Indexed by Language</title>
-      </header>
-      <body>
-        <xsl:choose>
-          <xsl:when test="$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="."/>
-              <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>
-                
-        <xsl:if test="//descriptor[not(descendant::doap:programming-language)]">
-          <section>
-            <title>Unkown Language</title>
-            <xsl:apply-templates select="//descriptor[not(descendant::doap:programming-language)]"/>
-          </section>
-        </xsl:if>
-      </body>
-    </document>
-  </xsl:template>
-</xsl:stylesheet>
-
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<xsl:stylesheet version = "1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:atom="http://www.w3.org/2005/Atom"
+  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
+  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
+  xmlns:doap="http://usefulinc.com/ns/doap#">
+  
+  <xsl:include href="descriptorIndex-to-indexByCommon.xsl"/>
+  
+  <xsl:key name="kDistinctProgLang" match="doap:programming-language" use="."/>
+  
+  <xsl:param name="filter"/>
+  
+  <xsl:template match="/">
+    <document>
+      <header>
+        <title>Projects Indexed by Language</title>
+      </header>
+      <body>
+        <xsl:choose>
+          <xsl:when test="$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="."/>
+              <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>
+                
+        <xsl:if test="//descriptor[not(descendant::doap:programming-language)]">
+          <section>
+            <title>Unkown Language</title>
+            <xsl:apply-templates select="//descriptor[not(descendant::doap:programming-language)]"/>
+          </section>
+        </xsl:if>
+      </body>
+    </document>
+  </xsl:template>
+</xsl:stylesheet>
+

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-indexByLang.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-siteSnippet.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-siteSnippet.xsl?view=diff&rev=522871&r1=522870&r2=522871
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-siteSnippet.xsl (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-siteSnippet.xsl Tue Mar 27 04:46:13 2007
@@ -1,61 +1,61 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
--->
-<xsl:stylesheet version = "1.0"
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-  xmlns:atom="http://www.w3.org/2005/Atom"
-  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
-  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
-  xmlns:doap="http://usefulinc.com/ns/doap#">
-  
-  <xsl:param name="name">All</xsl:param>
-  <xsl:param name="progLanguage"/>
-  
-  <xsl:template match="descriptors">
-    <xsl:element name="{$name}">
-      <xsl:attribute name="label"><xsl:value-of select="$name"/></xsl:attribute>
-      <xsl:choose>
-        <xsl:when test="$progLanguage">
-          <xsl:apply-templates select="descriptor[descendant::doap:Project[doap:programming-language = $progLanguage]]"/>
-        </xsl:when>
-        <xsl:otherwise>
-          <xsl:apply-templates/>
-        </xsl:otherwise>
-      </xsl:choose>
-    </xsl:element>
-  </xsl:template>
-  
-  <xsl:template match="descriptor">
-    <xsl:variable name="name">
-      <xsl:choose>
-        <xsl:when test="descendant::doap:Project/doap:shortname">
-          <xsl:value-of select="descendant::doap:Project/doap:shortname"/>
-        </xsl:when>
-        <xsl:otherwise>
-          <xsl:value-of select="descendant::doap:Project/doap:name"/>
-        </xsl:otherwise>
-      </xsl:choose>
-    </xsl:variable>
-      
-    <project>
-      <xsl:attribute name="label"><xsl:value-of select="$name"/></xsl:attribute>
-      <xsl:attribute name="href"><xsl:value-of select="@href-noext"/>.html</xsl:attribute>
-      <xsl:attribute name="description">Project details for <xsl:value-of select="$name"/></xsl:attribute>
-    </project>
-  </xsl:template>
-</xsl:stylesheet>
-
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<xsl:stylesheet version = "1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:atom="http://www.w3.org/2005/Atom"
+  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
+  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
+  xmlns:doap="http://usefulinc.com/ns/doap#">
+  
+  <xsl:param name="name">All</xsl:param>
+  <xsl:param name="progLanguage"/>
+  
+  <xsl:template match="descriptors">
+    <xsl:element name="{$name}">
+      <xsl:attribute name="label"><xsl:value-of select="$name"/></xsl:attribute>
+      <xsl:choose>
+        <xsl:when test="$progLanguage">
+          <xsl:apply-templates select="descriptor[descendant::doap:Project[doap:programming-language = $progLanguage]]"/>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:apply-templates/>
+        </xsl:otherwise>
+      </xsl:choose>
+    </xsl:element>
+  </xsl:template>
+  
+  <xsl:template match="descriptor">
+    <xsl:variable name="name">
+      <xsl:choose>
+        <xsl:when test="descendant::doap:Project/doap:shortname">
+          <xsl:value-of select="descendant::doap:Project/doap:shortname"/>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:value-of select="descendant::doap:Project/doap:name"/>
+        </xsl:otherwise>
+      </xsl:choose>
+    </xsl:variable>
+      
+    <project>
+      <xsl:attribute name="label"><xsl:value-of select="$name"/></xsl:attribute>
+      <xsl:attribute name="href"><xsl:value-of select="@href-noext"/>.html</xsl:attribute>
+      <xsl:attribute name="description">Project details for <xsl:value-of select="$name"/></xsl:attribute>
+    </project>
+  </xsl:template>
+</xsl:stylesheet>
+

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-siteSnippet.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-siteSnippet_byCategory.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-siteSnippet_byCategory.xsl?view=diff&rev=522871&r1=522870&r2=522871
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-siteSnippet_byCategory.xsl (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-siteSnippet_byCategory.xsl Tue Mar 27 04:46:13 2007
@@ -1,64 +1,64 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
--->
-<xsl:stylesheet version = "1.0"
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-  xmlns:atom="http://www.w3.org/2005/Atom"
-  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
-  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
-  xmlns:doap="http://usefulinc.com/ns/doap#">
-  
-  <xsl:key name="kDistinctCategory" match="doap:category" use="@rdf:resource"/>
-  
-  <xsl:param name="categoryURL">http://projects.apache.org/category/</xsl:param>
-  
-  <xsl:template match="/">
-    <langIndex>
-      <xsl:attribute name="label">Category Indexes</xsl:attribute>
-      <xsl:for-each select="//doap:category[generate-id() = generate-id(key('kDistinctCategory', @rdf:resource))]">
-        <xsl:sort select="@rdf:resource"/>
-        <xsl:variable name="category" select="@rdf:resource"/>
-        <xsl:variable name="name"><xsl:value-of select="substring-after($category, $categoryURL)"/></xsl:variable>
-        <xsl:element name="{$name}">
-          <xsl:attribute name="label"><xsl:value-of select="$name"/></xsl:attribute>
-          <xsl:attribute name="href">/projectDetails/index/byCategory/<xsl:value-of select="$name"/>.html</xsl:attribute>
-          <xsl:attribute name="description">All projects in the category  <xsl:value-of select="$name"/></xsl:attribute>
-        </xsl:element>
-      </xsl:for-each>
-    </langIndex>
-  </xsl:template>
-  
-  <xsl:template match="descriptor">
-    <xsl:variable name="name">
-      <xsl:choose>
-        <xsl:when test="descendant::doap:Project/doap:shortname">
-          <xsl:value-of select="descendant::doap:Project/doap:shortname"/>
-        </xsl:when>
-        <xsl:otherwise>
-          <xsl:value-of select="descendant::doap:Project/doap:name"/>
-        </xsl:otherwise>
-      </xsl:choose>
-    </xsl:variable>
-      
-    <project>
-      <xsl:attribute name="label"><xsl:value-of select="$name"/></xsl:attribute>
-      <xsl:attribute name="href"><xsl:value-of select="@href-noext"/>.html</xsl:attribute>
-      <xsl:attribute name="description">Project details for <xsl:value-of select="$name"/></xsl:attribute>
-    </project>
-  </xsl:template>
-</xsl:stylesheet>
-
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<xsl:stylesheet version = "1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:atom="http://www.w3.org/2005/Atom"
+  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
+  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
+  xmlns:doap="http://usefulinc.com/ns/doap#">
+  
+  <xsl:key name="kDistinctCategory" match="doap:category" use="@rdf:resource"/>
+  
+  <xsl:param name="categoryURL">http://projects.apache.org/category/</xsl:param>
+  
+  <xsl:template match="/">
+    <langIndex>
+      <xsl:attribute name="label">Category Indexes</xsl:attribute>
+      <xsl:for-each select="//doap:category[generate-id() = generate-id(key('kDistinctCategory', @rdf:resource))]">
+        <xsl:sort select="@rdf:resource"/>
+        <xsl:variable name="category" select="@rdf:resource"/>
+        <xsl:variable name="name"><xsl:value-of select="substring-after($category, $categoryURL)"/></xsl:variable>
+        <xsl:element name="{$name}">
+          <xsl:attribute name="label"><xsl:value-of select="$name"/></xsl:attribute>
+          <xsl:attribute name="href">/projectDetails/index/byCategory/<xsl:value-of select="$name"/>.html</xsl:attribute>
+          <xsl:attribute name="description">All projects in the category  <xsl:value-of select="$name"/></xsl:attribute>
+        </xsl:element>
+      </xsl:for-each>
+    </langIndex>
+  </xsl:template>
+  
+  <xsl:template match="descriptor">
+    <xsl:variable name="name">
+      <xsl:choose>
+        <xsl:when test="descendant::doap:Project/doap:shortname">
+          <xsl:value-of select="descendant::doap:Project/doap:shortname"/>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:value-of select="descendant::doap:Project/doap:name"/>
+        </xsl:otherwise>
+      </xsl:choose>
+    </xsl:variable>
+      
+    <project>
+      <xsl:attribute name="label"><xsl:value-of select="$name"/></xsl:attribute>
+      <xsl:attribute name="href"><xsl:value-of select="@href-noext"/>.html</xsl:attribute>
+      <xsl:attribute name="description">Project details for <xsl:value-of select="$name"/></xsl:attribute>
+    </project>
+  </xsl:template>
+</xsl:stylesheet>
+

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-siteSnippet_byCategory.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-siteSnippet_byLang.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-siteSnippet_byLang.xsl?view=diff&rev=522871&r1=522870&r2=522871
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-siteSnippet_byLang.xsl (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-siteSnippet_byLang.xsl Tue Mar 27 04:46:13 2007
@@ -1,61 +1,61 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
--->
-<xsl:stylesheet version = "1.0"
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-  xmlns:atom="http://www.w3.org/2005/Atom"
-  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
-  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
-  xmlns:doap="http://usefulinc.com/ns/doap#">
-  
-  <xsl:key name="kDistinctProgLang" match="doap:programming-language" use="."/>
-  
-  <xsl:template match="/">
-    <langIndex>
-      <xsl:attribute name="label">Language Indexes</xsl:attribute>
-      <xsl:for-each select="//doap:programming-language[generate-id() = generate-id(key('kDistinctProgLang',.))]">
-        <xsl:sort select="."/>
-        <xsl:variable name="name" select="."/>
-        <xsl:element name="{$name}">
-          <xsl:attribute name="label"><xsl:value-of select="$name"/></xsl:attribute>
-          <xsl:attribute name="href">/projectDetails/index/byLang/<xsl:value-of select="$name"/>.html</xsl:attribute>
-          <xsl:attribute name="description">All projects using <xsl:value-of select="$name"/></xsl:attribute>
-        </xsl:element>
-      </xsl:for-each>
-    </langIndex>
-  </xsl:template>
-  
-  <xsl:template match="descriptor">
-    <xsl:variable name="name">
-      <xsl:choose>
-        <xsl:when test="descendant::doap:Project/doap:shortname">
-          <xsl:value-of select="descendant::doap:Project/doap:shortname"/>
-        </xsl:when>
-        <xsl:otherwise>
-          <xsl:value-of select="descendant::doap:Project/doap:name"/>
-        </xsl:otherwise>
-      </xsl:choose>
-    </xsl:variable>
-      
-    <project>
-      <xsl:attribute name="label"><xsl:value-of select="$name"/></xsl:attribute>
-      <xsl:attribute name="href"><xsl:value-of select="@href-noext"/>.html</xsl:attribute>
-      <xsl:attribute name="description">Project details for <xsl:value-of select="$name"/></xsl:attribute>
-    </project>
-  </xsl:template>
-</xsl:stylesheet>
-
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<xsl:stylesheet version = "1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:atom="http://www.w3.org/2005/Atom"
+  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
+  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
+  xmlns:doap="http://usefulinc.com/ns/doap#">
+  
+  <xsl:key name="kDistinctProgLang" match="doap:programming-language" use="."/>
+  
+  <xsl:template match="/">
+    <langIndex>
+      <xsl:attribute name="label">Language Indexes</xsl:attribute>
+      <xsl:for-each select="//doap:programming-language[generate-id() = generate-id(key('kDistinctProgLang',.))]">
+        <xsl:sort select="."/>
+        <xsl:variable name="name" select="."/>
+        <xsl:element name="{$name}">
+          <xsl:attribute name="label"><xsl:value-of select="$name"/></xsl:attribute>
+          <xsl:attribute name="href">/projectDetails/index/byLang/<xsl:value-of select="$name"/>.html</xsl:attribute>
+          <xsl:attribute name="description">All projects using <xsl:value-of select="$name"/></xsl:attribute>
+        </xsl:element>
+      </xsl:for-each>
+    </langIndex>
+  </xsl:template>
+  
+  <xsl:template match="descriptor">
+    <xsl:variable name="name">
+      <xsl:choose>
+        <xsl:when test="descendant::doap:Project/doap:shortname">
+          <xsl:value-of select="descendant::doap:Project/doap:shortname"/>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:value-of select="descendant::doap:Project/doap:name"/>
+        </xsl:otherwise>
+      </xsl:choose>
+    </xsl:variable>
+      
+    <project>
+      <xsl:attribute name="label"><xsl:value-of select="$name"/></xsl:attribute>
+      <xsl:attribute name="href"><xsl:value-of select="@href-noext"/>.html</xsl:attribute>
+      <xsl:attribute name="description">Project details for <xsl:value-of select="$name"/></xsl:attribute>
+    </project>
+  </xsl:template>
+</xsl:stylesheet>
+

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-siteSnippet_byLang.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl?view=diff&rev=522871&r1=522870&r2=522871
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl Tue Mar 27 04:46:13 2007
@@ -1,343 +1,343 @@
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
--->
-<xsl:stylesheet version = "1.0"
-                xmlns:atom="http://www.w3.org/2005/Atom"
-                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
-                xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
-                xmlns:doap="http://usefulinc.com/ns/doap#"
-                xmlns:foaf="http://xmlns.com/foaf/0.1/"
-		xmlns:dc="http://purl.org/dc/elements/1.1/"
-                xmlns:asfext="http://projects.apache.org/ns/asfext#"
-                >
-
-  <xsl:template match="/">
-    <xsl:apply-templates select="doap:Project|rdf:RDF|atom:feed" />
-  </xsl:template>
-
-  <xsl:template match="rdf:RDF">
-    <xsl:apply-templates select="doap:Project" />
-  </xsl:template>
-
-  <xsl:template match="atom:feed">
-    <xsl:apply-templates select="atom:entry/atom:content/doap:Project" />
-  </xsl:template>
-
-  <xsl:template match="doap:Project">
-      <xsl:call-template name="project" />
-  </xsl:template>
-
-  <xsl:template name="project">
-    <document>
-      <xsl:call-template name="header" />
-      <xsl:call-template name="body" />
-    </document>
-  </xsl:template>
-
-  <xsl:template name="header">
-    <header>
-      <link rel="stylesheet" type="text/css" href="../html/projects.css" />
-      <title>Information about <xsl:value-of select="doap:name"/></title>
-    </header>
-  </xsl:template>
-
-  <xsl:template name="body">
-      <body>
-        <xsl:call-template name="project-header" />
-        <xsl:call-template name="project-summary" />
-        
-        <section>
-          <title>Description</title>
-          <xsl:choose>
-            <xsl:when test="doap:description">
-              <p><xsl:value-of select="doap:description"/></p>
-            </xsl:when>
-            <xsl:otherwise>
-              <p>No description supplied.</p>
-            </xsl:otherwise>
-          </xsl:choose>  
-        </section>
-        
-        <xsl:call-template name="project-releases" />
-        
-     </body>
-  </xsl:template>
-
-  <xsl:template match="@rdf:resource">
-    <a>
-      <xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
-      <xsl:value-of select="."/>
-    </a>
-  </xsl:template>
-    
-  <xsl:template match="doap:programming-language">
-    <a>
-      <xsl:attribute name="href"><xsl:value-of select="."/>_lang.html</xsl:attribute>
-      <xsl:value-of select="."/>
-    </a>
-    <xsl:if test="not(position() = last())">
-      <xsl:text>, </xsl:text>
-    </xsl:if>
-  </xsl:template>
-  <xsl:template match="doap:category">
-    <xsl:value-of select="@rdf:resource"/>
-    <xsl:if test="not(position() = last())">
-      <xsl:text>, </xsl:text>
-    </xsl:if>
-  </xsl:template>
-
-    <xsl:template match="foaf:seeAlso">
-      <xsl:choose>
-        <xsl:when test="@dc:format='application/rss+xml'">
-           <a class="rss-rss-link">
-	   <xsl:attribute name="href">
-           <xsl:value-of select="@rdf:resource"/>
-	   </xsl:attribute> RSS
-           </a>
-        </xsl:when>
-        <xsl:when test="@dc:format='application/atom+xml'">
-           <a class="rss-atom-link">
-	   <xsl:attribute name="href">
-           <xsl:value-of select="@rdf:resource"/>
-	   </xsl:attribute> Atom
-           </a>
-        </xsl:when>	  
-        <xsl:when test="@dc:format='application/rdf+xml'">
-           <a class="rss-rdf-link">
-	   <xsl:attribute name="href">
-           <xsl:value-of select="@rdf:resource"/>
-	   </xsl:attribute> RDF
-           </a>
-        </xsl:when>	  
-      </xsl:choose>
-  </xsl:template>
-
-  <xsl:template name="project-header">
-      <div class="description">
-          <p>
-            <xsl:value-of select="doap:shortdesc"/>
-          </p>
-          <xsl:if test="doap:homepage">
-            <p>
-              For more information visit 
-              <xsl:apply-templates select="doap:homepage/@*" />
-            </p>
-          </xsl:if>
-      </div>
-  </xsl:template>
-
-  <xsl:template name="project-summary">
-    <section>
-      <title>Summary</title>
-
-        <div class="content">
-          <table>
-               <tr>
-                 <td class="left">Programming Languages</td>
-                 <td class="right">
-                   <xsl:choose>
-                     <xsl:when test="doap:programming-language">
-                       <xsl:apply-templates select="doap:programming-language" />
-                     </xsl:when>
-                     <xsl:otherwise>
-                       None Defined
-                     </xsl:otherwise>
-                   </xsl:choose>
-                 </td>
-               </tr>
-               <tr>
-                 <td class="left">Categories</td>
-                 <td class="right">
-                   <xsl:choose>
-                     <xsl:when test="doap:category">
-                       <xsl:apply-templates select="doap:category" />
-                     </xsl:when>
-                     <xsl:otherwise>
-                       None Defined
-                     </xsl:otherwise>
-                   </xsl:choose>
-                 </td>
-               </tr>  
-               <tr>
-                 <td class="left">Mailing Lists</td>
-                 <td class="right">
-                   <xsl:choose>
-                     <xsl:when test="doap:mailing-list/@*">
-                       <xsl:apply-templates select="doap:mailing-list/@*" />
-                     </xsl:when>
-                     <xsl:otherwise>
-                       None Defined
-                     </xsl:otherwise>
-                   </xsl:choose>  
-                 </td>
-               </tr>
-               <tr>
-                 <td class="left">Bug/Issue Tracker</td>
-                 <td class="right">
-                   <xsl:choose>
-                     <xsl:when test="doap:bug-database/@*">
-                       <xsl:apply-templates select="doap:bug-database/@*" />
-                     </xsl:when>
-                     <xsl:otherwise>
-                       None Defined
-                     </xsl:otherwise>
-                   </xsl:choose>  
-                 </td>
-               </tr>
-               <tr>
-                 <td class="left">Wiki</td>
-                 <td class="right">
-                   <xsl:choose>
-                     <xsl:when test="doap:wiki/@*">
-                       <xsl:apply-templates select="doap:wiki/@*" />
-                     </xsl:when>
-                     <xsl:otherwise>
-                       None Defined
-                     </xsl:otherwise>
-                   </xsl:choose>
-                 </td>
-               </tr>
-               <tr>
-                 <td class="left">License</td>
-                 <td class="right">
-                   <xsl:choose>
-                     <xsl:when test="doap:license/@rdf:resource = 'http://usefulinc.com/doap/licenses/asl20'">
-                       <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License Version 2.0</a>
-                     </xsl:when>
-                     <xsl:otherwise>
-                       <xsl:choose>
-                         <xsl:when test="doap:license/@*">
-                           <xsl:apply-templates select="doap:license/@*" />
-                         </xsl:when>
-                         <xsl:otherwise>
-                           None Defined
-                         </xsl:otherwise>
-                       </xsl:choose>
-                     </xsl:otherwise>
-                   </xsl:choose>
-                 </td>
-               </tr>    
-               <tr>
-                 <td class="left">Project Website</td>
-                 <td class="right">
-                   <xsl:choose>
-                     <xsl:when test="doap:homepage/@*">
-                   <xsl:apply-templates select="doap:homepage/@*" />
-                     </xsl:when>
-                     <xsl:otherwise>
-                       None Defined
-                     </xsl:otherwise>
-                   </xsl:choose>
-                 </td>
-               </tr>
-               <tr>
-                 <td class="left">RSS Feeds</td>
-                 <td class="right">
-                   <xsl:choose>
-		     <xsl:when test="foaf:seeAlso">
-		       <xsl:apply-templates select="foaf:seeAlso" />
-                     </xsl:when>
-                     <xsl:otherwise>
-                       None Defined
-                     </xsl:otherwise>
-                   </xsl:choose>
-                 </td>
-               </tr>
-             </table>
-           </div>
-     </section>
-  </xsl:template>
-
-  <xsl:template name="project-scm">
-
-    <div class="content">
-      <xsl:choose>
-        <xsl:when test="doap:repository">
-          <xsl:for-each select="doap:repository/doap:SVNRepository">
-            <table>
-              <tr>
-                <td class="left">Browse</td>
-                <td class="right">
-                  <xsl:apply-templates select="doap:browse/@*" />
-                </td>
-              </tr>
-              <tr>
-                <td class="left">Checkout</td>
-                <td class="right">
-                  <pre>svn co <xsl:apply-templates select="doap:location/@rdf:resource" /></pre>
-                </td>
-              </tr>              
-            </table>
-          </xsl:for-each>
-        </xsl:when>
-        <xsl:otherwise>
-          <p>No source control information provided.</p>
-        </xsl:otherwise>
-      </xsl:choose>
-    </div>
-  </xsl:template>
-
-  <xsl:template match="doap:release/doap:Version">
-    <tr>
-        <td class="title">
-            <xsl:value-of select="doap:name" />
-        </td>
-        <td class="right"><xsl:value-of  select="doap:revision" /></td>
-        <td class="right"><xsl:value-of  select="doap:created" /></td>
-    </tr>
-  </xsl:template>
-  
-  <xsl:template name="project-releases">
-    <section>
-      <title>Source and Releases</title>
-
-      <div class="content">
-        <xsl:choose>
-            <xsl:when test="doap:doanload-page">
-                <p>Releases can be downloaded from
-                  <xsl:apply-templates select="doap:download-page/@*" />
-                  .
-                </p>
-            </xsl:when>
-            <xsl:otherwise>
-              <p>No release download page available.</p>
-            </xsl:otherwise>
-        </xsl:choose>
-    </div>
-    
-    <xsl:choose>
-    <xsl:when test="doap:release">
-      <p>Most recent releases:</p>
-
-      <div class="content">  
-        <table>
-         <tr><td>Release</td><td>Version</td><td>Date</td></tr>         
-         <xsl:apply-templates select="doap:release/doap:Version" />   
-        </table>
-     </div>
-    </xsl:when>
-    <xsl:otherwise>
-      <p>No known current releases.</p>
-    </xsl:otherwise>
-    </xsl:choose>
-   
-   <p>Access to the source code:</p>
-   
-   <xsl:call-template name="project-scm" />
-  </section>
-  </xsl:template>
-</xsl:stylesheet>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<xsl:stylesheet version = "1.0"
+                xmlns:atom="http://www.w3.org/2005/Atom"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
+                xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
+                xmlns:doap="http://usefulinc.com/ns/doap#"
+                xmlns:foaf="http://xmlns.com/foaf/0.1/"
+		xmlns:dc="http://purl.org/dc/elements/1.1/"
+                xmlns:asfext="http://projects.apache.org/ns/asfext#"
+                >
+
+  <xsl:template match="/">
+    <xsl:apply-templates select="doap:Project|rdf:RDF|atom:feed" />
+  </xsl:template>
+
+  <xsl:template match="rdf:RDF">
+    <xsl:apply-templates select="doap:Project" />
+  </xsl:template>
+
+  <xsl:template match="atom:feed">
+    <xsl:apply-templates select="atom:entry/atom:content/doap:Project" />
+  </xsl:template>
+
+  <xsl:template match="doap:Project">
+      <xsl:call-template name="project" />
+  </xsl:template>
+
+  <xsl:template name="project">
+    <document>
+      <xsl:call-template name="header" />
+      <xsl:call-template name="body" />
+    </document>
+  </xsl:template>
+
+  <xsl:template name="header">
+    <header>
+      <link rel="stylesheet" type="text/css" href="../html/projects.css" />
+      <title>Information about <xsl:value-of select="doap:name"/></title>
+    </header>
+  </xsl:template>
+
+  <xsl:template name="body">
+      <body>
+        <xsl:call-template name="project-header" />
+        <xsl:call-template name="project-summary" />
+        
+        <section>
+          <title>Description</title>
+          <xsl:choose>
+            <xsl:when test="doap:description">
+              <p><xsl:value-of select="doap:description"/></p>
+            </xsl:when>
+            <xsl:otherwise>
+              <p>No description supplied.</p>
+            </xsl:otherwise>
+          </xsl:choose>  
+        </section>
+        
+        <xsl:call-template name="project-releases" />
+        
+     </body>
+  </xsl:template>
+
+  <xsl:template match="@rdf:resource">
+    <a>
+      <xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
+      <xsl:value-of select="."/>
+    </a>
+  </xsl:template>
+    
+  <xsl:template match="doap:programming-language">
+    <a>
+      <xsl:attribute name="href"><xsl:value-of select="."/>_lang.html</xsl:attribute>
+      <xsl:value-of select="."/>
+    </a>
+    <xsl:if test="not(position() = last())">
+      <xsl:text>, </xsl:text>
+    </xsl:if>
+  </xsl:template>
+  <xsl:template match="doap:category">
+    <xsl:value-of select="@rdf:resource"/>
+    <xsl:if test="not(position() = last())">
+      <xsl:text>, </xsl:text>
+    </xsl:if>
+  </xsl:template>
+
+    <xsl:template match="foaf:seeAlso">
+      <xsl:choose>
+        <xsl:when test="@dc:format='application/rss+xml'">
+           <a class="rss-rss-link">
+	   <xsl:attribute name="href">
+           <xsl:value-of select="@rdf:resource"/>
+	   </xsl:attribute> RSS
+           </a>
+        </xsl:when>
+        <xsl:when test="@dc:format='application/atom+xml'">
+           <a class="rss-atom-link">
+	   <xsl:attribute name="href">
+           <xsl:value-of select="@rdf:resource"/>
+	   </xsl:attribute> Atom
+           </a>
+        </xsl:when>	  
+        <xsl:when test="@dc:format='application/rdf+xml'">
+           <a class="rss-rdf-link">
+	   <xsl:attribute name="href">
+           <xsl:value-of select="@rdf:resource"/>
+	   </xsl:attribute> RDF
+           </a>
+        </xsl:when>	  
+      </xsl:choose>
+  </xsl:template>
+
+  <xsl:template name="project-header">
+      <div class="description">
+          <p>
+            <xsl:value-of select="doap:shortdesc"/>
+          </p>
+          <xsl:if test="doap:homepage">
+            <p>
+              For more information visit 
+              <xsl:apply-templates select="doap:homepage/@*" />
+            </p>
+          </xsl:if>
+      </div>
+  </xsl:template>
+
+  <xsl:template name="project-summary">
+    <section>
+      <title>Summary</title>
+
+        <div class="content">
+          <table>
+               <tr>
+                 <td class="left">Programming Languages</td>
+                 <td class="right">
+                   <xsl:choose>
+                     <xsl:when test="doap:programming-language">
+                       <xsl:apply-templates select="doap:programming-language" />
+                     </xsl:when>
+                     <xsl:otherwise>
+                       None Defined
+                     </xsl:otherwise>
+                   </xsl:choose>
+                 </td>
+               </tr>
+               <tr>
+                 <td class="left">Categories</td>
+                 <td class="right">
+                   <xsl:choose>
+                     <xsl:when test="doap:category">
+                       <xsl:apply-templates select="doap:category" />
+                     </xsl:when>
+                     <xsl:otherwise>
+                       None Defined
+                     </xsl:otherwise>
+                   </xsl:choose>
+                 </td>
+               </tr>  
+               <tr>
+                 <td class="left">Mailing Lists</td>
+                 <td class="right">
+                   <xsl:choose>
+                     <xsl:when test="doap:mailing-list/@*">
+                       <xsl:apply-templates select="doap:mailing-list/@*" />
+                     </xsl:when>
+                     <xsl:otherwise>
+                       None Defined
+                     </xsl:otherwise>
+                   </xsl:choose>  
+                 </td>
+               </tr>
+               <tr>
+                 <td class="left">Bug/Issue Tracker</td>
+                 <td class="right">
+                   <xsl:choose>
+                     <xsl:when test="doap:bug-database/@*">
+                       <xsl:apply-templates select="doap:bug-database/@*" />
+                     </xsl:when>
+                     <xsl:otherwise>
+                       None Defined
+                     </xsl:otherwise>
+                   </xsl:choose>  
+                 </td>
+               </tr>
+               <tr>
+                 <td class="left">Wiki</td>
+                 <td class="right">
+                   <xsl:choose>
+                     <xsl:when test="doap:wiki/@*">
+                       <xsl:apply-templates select="doap:wiki/@*" />
+                     </xsl:when>
+                     <xsl:otherwise>
+                       None Defined
+                     </xsl:otherwise>
+                   </xsl:choose>
+                 </td>
+               </tr>
+               <tr>
+                 <td class="left">License</td>
+                 <td class="right">
+                   <xsl:choose>
+                     <xsl:when test="doap:license/@rdf:resource = 'http://usefulinc.com/doap/licenses/asl20'">
+                       <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License Version 2.0</a>
+                     </xsl:when>
+                     <xsl:otherwise>
+                       <xsl:choose>
+                         <xsl:when test="doap:license/@*">
+                           <xsl:apply-templates select="doap:license/@*" />
+                         </xsl:when>
+                         <xsl:otherwise>
+                           None Defined
+                         </xsl:otherwise>
+                       </xsl:choose>
+                     </xsl:otherwise>
+                   </xsl:choose>
+                 </td>
+               </tr>    
+               <tr>
+                 <td class="left">Project Website</td>
+                 <td class="right">
+                   <xsl:choose>
+                     <xsl:when test="doap:homepage/@*">
+                   <xsl:apply-templates select="doap:homepage/@*" />
+                     </xsl:when>
+                     <xsl:otherwise>
+                       None Defined
+                     </xsl:otherwise>
+                   </xsl:choose>
+                 </td>
+               </tr>
+               <tr>
+                 <td class="left">RSS Feeds</td>
+                 <td class="right">
+                   <xsl:choose>
+		     <xsl:when test="foaf:seeAlso">
+		       <xsl:apply-templates select="foaf:seeAlso" />
+                     </xsl:when>
+                     <xsl:otherwise>
+                       None Defined
+                     </xsl:otherwise>
+                   </xsl:choose>
+                 </td>
+               </tr>
+             </table>
+           </div>
+     </section>
+  </xsl:template>
+
+  <xsl:template name="project-scm">
+
+    <div class="content">
+      <xsl:choose>
+        <xsl:when test="doap:repository">
+          <xsl:for-each select="doap:repository/doap:SVNRepository">
+            <table>
+              <tr>
+                <td class="left">Browse</td>
+                <td class="right">
+                  <xsl:apply-templates select="doap:browse/@*" />
+                </td>
+              </tr>
+              <tr>
+                <td class="left">Checkout</td>
+                <td class="right">
+                  <pre>svn co <xsl:apply-templates select="doap:location/@rdf:resource" /></pre>
+                </td>
+              </tr>              
+            </table>
+          </xsl:for-each>
+        </xsl:when>
+        <xsl:otherwise>
+          <p>No source control information provided.</p>
+        </xsl:otherwise>
+      </xsl:choose>
+    </div>
+  </xsl:template>
+
+  <xsl:template match="doap:release/doap:Version">
+    <tr>
+        <td class="title">
+            <xsl:value-of select="doap:name" />
+        </td>
+        <td class="right"><xsl:value-of  select="doap:revision" /></td>
+        <td class="right"><xsl:value-of  select="doap:created" /></td>
+    </tr>
+  </xsl:template>
+  
+  <xsl:template name="project-releases">
+    <section>
+      <title>Source and Releases</title>
+
+      <div class="content">
+        <xsl:choose>
+            <xsl:when test="doap:doanload-page">
+                <p>Releases can be downloaded from
+                  <xsl:apply-templates select="doap:download-page/@*" />
+                  .
+                </p>
+            </xsl:when>
+            <xsl:otherwise>
+              <p>No release download page available.</p>
+            </xsl:otherwise>
+        </xsl:choose>
+    </div>
+    
+    <xsl:choose>
+    <xsl:when test="doap:release">
+      <p>Most recent releases:</p>
+
+      <div class="content">  
+        <table>
+         <tr><td>Release</td><td>Version</td><td>Date</td></tr>         
+         <xsl:apply-templates select="doap:release/doap:Version" />   
+        </table>
+     </div>
+    </xsl:when>
+    <xsl:otherwise>
+      <p>No known current releases.</p>
+    </xsl:otherwise>
+    </xsl:choose>
+   
+   <p>Access to the source code:</p>
+   
+   <xsl:call-template name="project-scm" />
+  </section>
+  </xsl:template>
+</xsl:stylesheet>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/doap-to-document.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/locationmap-to-descriptorIndex.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/locationmap-to-descriptorIndex.xsl?view=diff&rev=522871&r1=522870&r2=522871
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/locationmap-to-descriptorIndex.xsl (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/locationmap-to-descriptorIndex.xsl Tue Mar 27 04:46:13 2007
@@ -1,45 +1,45 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
--->
-<xsl:stylesheet version = "1.0"
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-  xmlns:lm="http://apache.org/forrest/locationmap/1.0"
-  xmlns:cinclude="http://apache.org/cocoon/include/1.0">
-
-  <xsl:template match="lm:locationmap">
-    <descriptors>
-      <xsl:apply-templates/>
-    </descriptors>
-  </xsl:template>
-  
-  <xsl:template match="lm:locator/lm:match[starts-with(@pattern, 'doap.descriptor')]">
-    <xsl:variable name="href-noext">
-      <xsl:choose>
-        <xsl:when test="@pattern = 'doap.descriptor'">/projectDetails</xsl:when>
-        <xsl:otherwise><xsl:value-of select="substring-after(@pattern, 'doap.descriptor.')"/></xsl:otherwise>
-      </xsl:choose>
-    </xsl:variable>
-
-    <descriptor href-noext="/projectDetails/{$href-noext}">
-      <xsl:attribute name="id"><xsl:value-of select="@pattern"/></xsl:attribute>
-      <cinclude:include>
-         <xsl:attribute name="src">cocoon:/projectDetails/<xsl:value-of select="$href-noext"/>.source.xml</xsl:attribute>
-      </cinclude:include>
-    </descriptor>
-  </xsl:template>
-</xsl:stylesheet>
-
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<xsl:stylesheet version = "1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:lm="http://apache.org/forrest/locationmap/1.0"
+  xmlns:cinclude="http://apache.org/cocoon/include/1.0">
+
+  <xsl:template match="lm:locationmap">
+    <descriptors>
+      <xsl:apply-templates/>
+    </descriptors>
+  </xsl:template>
+  
+  <xsl:template match="lm:locator/lm:match[starts-with(@pattern, 'doap.descriptor')]">
+    <xsl:variable name="href-noext">
+      <xsl:choose>
+        <xsl:when test="@pattern = 'doap.descriptor'">/projectDetails</xsl:when>
+        <xsl:otherwise><xsl:value-of select="substring-after(@pattern, 'doap.descriptor.')"/></xsl:otherwise>
+      </xsl:choose>
+    </xsl:variable>
+
+    <descriptor href-noext="/projectDetails/{$href-noext}">
+      <xsl:attribute name="id"><xsl:value-of select="@pattern"/></xsl:attribute>
+      <cinclude:include>
+         <xsl:attribute name="src">cocoon:/projectDetails/<xsl:value-of select="$href-noext"/>.source.xml</xsl:attribute>
+      </cinclude:include>
+    </descriptor>
+  </xsl:template>
+</xsl:stylesheet>
+

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/locationmap-to-descriptorIndex.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/doap-embedded.ft
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/doap-embedded.ft?view=diff&rev=522871&r1=522870&r2=522871
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/doap-embedded.ft (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/doap-embedded.ft Tue Mar 27 04:46:13 2007
@@ -1,79 +1,79 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
--->
-<forrest:contract 
-  xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
-  xmlns:forrest="http://apache.org/forrest/templates/1.0"
-  name="doap-embedded">
-  
-  <description>
-    <p>This template outputs html link elements for embedding DOAP files. </p>
-    <p>The contract requires the locations of DOAP files to be passed in as parameters using the following syntax :</p>
-    <source>&lt;doap url="<em>food.rdf</em>"&gt;</source>
-    <ul>
-      <li><strong>url</strong> attribute indicates the location of the DOAP file.
-      The <strong>url</strong> attribute is required.
-      </li>      
-      <li><strong>title</strong> attribute indicates the title DOAP file.
-      The <strong>title</strong> attribute is optional an has a default value of "DOAP".
-      </li> 
-    </ul>
-  </description>
-  
-  <usage><![CDATA[<forrest:contract name="doap-embedded">
-      <forrest:property name="doap-embedded-links">
-        <doap url="foo.rdf"/>
-        <doap url="foo.bar.xml"/>
-        ...
-      </forrest:property>
-    </forrest:contract>]]></usage>
-    
-  <forrest:template xmlns:forrest="http://apache.org/forrest/templates/1.0"
-    name="doap-embedded" inputFormat="xsl">
-    <xsl:stylesheet version="1.1" 
-      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-      xmlns:forrest="http://apache.org/forrest/templates/1.0">
-      
-      <xsl:param name="doap-embedded-links"/>
-      
-      <xsl:template match="/">
-        <forrest:content>
-          <forrest:part xpath="/html/head">
-            <xsl:apply-templates select="$doap-embedded-links"/>
-          </forrest:part>
-        </forrest:content>
-      </xsl:template>
-      
-      <xsl:template match="doap[@url]">
-        <link rel="meta" type="application/rdf+xml">
-          <xsl:choose>
-            <xsl:when test="@title">
-              <xsl:attribute name="title">
-                <xsl:value-of select="@title"/>
-              </xsl:attribute>
-            </xsl:when>
-            <xsl:otherwise>
-              <xsl:attribute name="title">DOAP</xsl:attribute>
-            </xsl:otherwise>
-          </xsl:choose>
-          
-          <xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>
-        </link>
-      </xsl:template>      
-    </xsl:stylesheet>
-  </forrest:template>
-</forrest:contract>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<forrest:contract 
+  xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+  xmlns:forrest="http://apache.org/forrest/templates/1.0"
+  name="doap-embedded">
+  
+  <description>
+    <p>This template outputs html link elements for embedding DOAP files. </p>
+    <p>The contract requires the locations of DOAP files to be passed in as parameters using the following syntax :</p>
+    <source>&lt;doap url="<em>food.rdf</em>"&gt;</source>
+    <ul>
+      <li><strong>url</strong> attribute indicates the location of the DOAP file.
+      The <strong>url</strong> attribute is required.
+      </li>      
+      <li><strong>title</strong> attribute indicates the title DOAP file.
+      The <strong>title</strong> attribute is optional an has a default value of "DOAP".
+      </li> 
+    </ul>
+  </description>
+  
+  <usage><![CDATA[<forrest:contract name="doap-embedded">
+      <forrest:property name="doap-embedded-links">
+        <doap url="foo.rdf"/>
+        <doap url="foo.bar.xml"/>
+        ...
+      </forrest:property>
+    </forrest:contract>]]></usage>
+    
+  <forrest:template xmlns:forrest="http://apache.org/forrest/templates/1.0"
+    name="doap-embedded" inputFormat="xsl">
+    <xsl:stylesheet version="1.1" 
+      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+      xmlns:forrest="http://apache.org/forrest/templates/1.0">
+      
+      <xsl:param name="doap-embedded-links"/>
+      
+      <xsl:template match="/">
+        <forrest:content>
+          <forrest:part xpath="/html/head">
+            <xsl:apply-templates select="$doap-embedded-links"/>
+          </forrest:part>
+        </forrest:content>
+      </xsl:template>
+      
+      <xsl:template match="doap[@url]">
+        <link rel="meta" type="application/rdf+xml">
+          <xsl:choose>
+            <xsl:when test="@title">
+              <xsl:attribute name="title">
+                <xsl:value-of select="@title"/>
+              </xsl:attribute>
+            </xsl:when>
+            <xsl:otherwise>
+              <xsl:attribute name="title">DOAP</xsl:attribute>
+            </xsl:otherwise>
+          </xsl:choose>
+          
+          <xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>
+        </link>
+      </xsl:template>      
+    </xsl:stylesheet>
+  </forrest:template>
+</forrest:contract>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/doap-embedded.ft
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/classes/CatalogManager.properties
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message