You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by cr...@apache.org on 2007/04/10 07:45:31 UTC
svn commit: r527038 [5/15] - in /forrest/trunk/whiteboard/plugins: ./
org.apache.forrest.plugin.Database/
org.apache.forrest.plugin.Database/resources/stylesheets/
org.apache.forrest.plugin.Database/src/documentation/
org.apache.forrest.plugin.Database...
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=527038&r1=527037&r2=527038
==============================================================================
--- 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 Mon Apr 9 22:45:15 2007
@@ -31,29 +31,25 @@
<cache-at-startup>true</cache-at-startup>
</map:transformer>
</map:transformers>
-
<map:pipes>
<map:pipe name="navigation"
src="org.apache.cocoon.components.pipeline.impl.ExpiresCachingProcessingPipeline">
- <parameter name="cache-expires" value="600"/> <!-- Expires in seconds -->
+ <parameter name="cache-expires" value="600"/>
+<!-- Expires in seconds -->
</map:pipe>
</map:pipes>
</map:components>
-
-<map:pipelines>
-
- <map:pipeline type="navigation">
- <!-- ================================================================ -->
- <!-- Site.xml snippets -->
- <!-- ================================================================ -->
-
+ <map:pipelines>
+ <map:pipeline type="navigation">
+<!-- ================================================================ -->
+<!-- Site.xml snippets -->
+<!-- ================================================================ -->
<map:match pattern="projectDetails/descriptorIndex.xml">
<map:generate type="file" src="{properties:content}/locationmap.xml" />
<map:transform src="{lm:doap.transform.locationmap.descriptorIndex}"/>
<map:transform type="cinclude"/>
<map:serialize type="xml"/>
</map:match>
-
<map:match pattern="projectDetails/index/by*/siteSnippet.xml">
<map:generate type="file" src="cocoon:/projectDetails/descriptorIndex.xml" />
<map:transform src="{lm:doap.transform.descriptorIndex.siteSnippet_by{1}}">
@@ -61,8 +57,7 @@
</map:transform>
<map:serialize type="xml-document"/>
</map:match>
-
- <!--
+<!--
Create a snippet for inclusion in site.xml that lists all projects
known in the locationmap-projects.xml file.
-->
@@ -71,8 +66,7 @@
<map:transform src="{lm:doap.transform.descriptorIndex.siteSnippet}"/>
<map:serialize type="xml-document"/>
</map:match>
-
- <!--
+<!--
Create a snippet for inclusion in site.xml that lists all projects
known in the locationmap-projects.xml that have the indicated
programming language.
@@ -85,32 +79,26 @@
</map:transform>
<map:serialize type="xml-document"/>
</map:match>
-
</map:pipeline>
-
- <map:pipeline>
-
- <!-- ================================================================ -->
- <!-- indexes -->
- <!-- ================================================================ -->
-
- <!-- FIXME: create the XSL for this pipeline
+ <map:pipeline>
+<!-- ================================================================ -->
+<!-- indexes -->
+<!-- ================================================================ -->
+<!-- FIXME: create the XSL for this pipeline
<map:match pattern="projectDetails.index.xml">
<map:generate type="file" src="cocoon:/projectDetails/descriptorIndex.xml" />
<map:transform src="{lm:doap.transform.descriptorIndex.html}"/>
<map:serialize type="xml-document"/>
</map:match>
- -->
-
+ -->
<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:parameter name="documentPath" value="{0}"/>
</map:transform>
<map:serialize type="xml-document"/>
- </map:match>
-
+ </map:match>
<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}}">
@@ -119,31 +107,24 @@
</map:transform>
<map:serialize type="xml-document"/>
</map:match>
-
<map:match pattern="projectDetails/source.xml">
<map:generate type="file" src="{lm:doap.descriptor}" />
<map:serialize type="xml"/>
</map:match>
-
<map:match pattern="projectDetails/**.source.xml">
<map:generate type="file" src="{lm:doap.descriptor.{1}}" />
<map:serialize type="xml"/>
</map:match>
-
<map:match pattern="projectDetails.xml">
<map:generate src="cocoon:/projectDetails/source.xml" />
<map:transform src="{lm:doap.transform.doap.document}"/>
<map:serialize type="xml-document"/>
</map:match>
-
<map:match pattern="projectDetails/**.xml">
<map:generate src="cocoon:/projectDetails/{1}.source.xml" />
<map:transform src="{lm:doap.transform.doap.document}"/>
<map:serialize type="xml-document"/>
- </map:match>
-
- </map:pipeline>
-
-</map:pipelines>
-
+ </map:match>
+ </map:pipeline>
+ </map:pipelines>
</map:sitemap>
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/locationmap.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/locationmap.xml?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/locationmap.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/locationmap.xml Mon Apr 9 22:45:15 2007
@@ -16,7 +16,6 @@
limitations under the License.
-->
<locationmap xmlns="http://apache.org/forrest/locationmap/1.0">
-
<components>
<matchers default="lm">
<matcher
@@ -24,21 +23,18 @@
src="org.apache.forrest.locationmap.WildcardLocationMapHintMatcher"/>
</matchers>
<selectors default="exists">
- <selector name="exists" logger="sitemap.selector.exists"
+ <selector name="exists" logger="sitemap.selector.exists"
src="org.apache.forrest.sourceexists.SourceExistsSelector" />
</selectors>
</components>
-
<locator>
<match pattern="doap.descriptor">
<location src="doap.xml" />
- </match>
-
+ </match>
<match pattern="doap.transform.*.*">
<location src="resources/stylesheets/{1}-to-{2}.xsl"/>
- </match>
-
- <match pattern="resolvePluginContract.*.**">
+ </match>
+ <match pattern="resolvePluginContract.*.**">
<select type="exists">
<location src="{forrest:forrest.plugins}/org.apache.forrest.plugin.input.doap/resources/themes/{properties:dispatcher.theme}/{1}/{2}.ft" />
<location src="{forrest:forrest.plugins}/org.apache.forrest.plugin.input.doap/resources/themes/{properties:dispatcher.fallback.theme}/{1}/{2}.ft" />
@@ -56,6 +52,5 @@
<location src="{forrest:forrest.plugins}/org.apache.forrest.plugin.input.doap/resources/themes/{properties:dispatcher.fallback.theme}/panels/{1}.panel.xml" />
</select>
</match>
-
</locator>
</locationmap>
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources.xmap
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources.xmap?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources.xmap (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources.xmap Mon Apr 9 22:45:15 2007
@@ -18,30 +18,24 @@
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:components>
<map:serializers>
- <map:serializer name="js"
+ <map:serializer name="js"
src="org.apache.cocoon.serialization.TextSerializer"
mime-type="application/javascript"
logger="sitemap.serializer.text"
/>
</map:serializers>
</map:components>
-
-<map:pipelines>
-
+ <map:pipelines>
<map:pipeline>
-
<map:match pattern="projectDetails/allProjects.js">
<map:generate type="file" src="cocoon://projectDetails/descriptorIndex.xml" />
<map:transform src="{lm:doap.transform.descriptorIndex.JSON}"/>
<map:serialize type="js"/>
- </map:match>
-
+ </map:match>
<map:match pattern="projectDetails/**.rdf">
<map:generate src="cocoon://projectDetails/{1}.source.xml" />
<map:serialize type="xml"/>
- </map:match>
+ </map:match>
</map:pipeline>
-
-</map:pipelines>
-
+ </map:pipelines>
</map:sitemap>
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-JSON.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-JSON.xsl?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-JSON.xsl (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-JSON.xsl Mon Apr 9 22:45:15 2007
@@ -21,7 +21,6 @@
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:template match="/">
{
"items" : [
@@ -29,31 +28,24 @@
]
}
</xsl:template>
-
<xsl:template match="descriptors">
<xsl:apply-templates/>
</xsl:template>
-
<xsl:template match="descriptor">
<xsl:apply-templates/>
</xsl:template>
-
<xsl:template match="doap:Project">
{
<xsl:apply-templates/>
},
</xsl:template>
-
<xsl:template match="doap:shortdesc">
shortdesc : <xsl:value-of select="."/>
</xsl:template>
-
<xsl:template match="doap:name">
name : <xsl:value-of select="."/>,
</xsl:template>
-
<xsl:template match="doap:homepage">
homepage : <xsl:value-of select="@rdf:resource"/>,
</xsl:template>
</xsl:stylesheet>
-
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=527038&r1=527037&r2=527038
==============================================================================
--- 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 Mon Apr 9 22:45:15 2007
@@ -21,13 +21,9 @@
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>
@@ -46,21 +42,19 @@
<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]]"/>
+ <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)]"/>
+ <title>Uncategorised</title>
+ <xsl:apply-templates select="//descriptor[not(descendant::doap:category)]"/>
</section>
</xsl:if>
</body>
</document>
</xsl:template>
</xsl:stylesheet>
-
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=527038&r1=527037&r2=527038
==============================================================================
--- 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 Mon Apr 9 22:45:15 2007
@@ -21,16 +21,15 @@
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: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: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">
@@ -41,14 +40,15 @@
</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"/>
+ <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:text> </xsl:text>
<xsl:choose>
<xsl:when test="descendant::doap:Project/doap:shortdesc">
<xsl:value-of select="descendant::doap:Project/doap:shortdesc"/>
@@ -60,12 +60,11 @@
</p>
</div>
</xsl:template>
-
- <!-- FIXME: this should come from include of dotdots.xsl in forest core -->
+<!-- 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:
+<!-- 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,
@@ -74,13 +73,11 @@
-->
<xsl:variable name="remainder" select="substring-after($dirs, ' ')"/>
<xsl:if test="$remainder">
- <xsl:text>../</xsl:text>
+<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. -->
+<!-- Translate back to /'s because that's what the template expects. -->
</xsl:call-template>
</xsl:if>
</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=527038&r1=527037&r2=527038
==============================================================================
--- 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 Mon Apr 9 22:45:15 2007
@@ -21,13 +21,9 @@
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>
@@ -52,7 +48,6 @@
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
-
<xsl:if test="//descriptor[not(descendant::doap:programming-language)]">
<section>
<title>Unkown Language</title>
@@ -63,4 +58,3 @@
</document>
</xsl:template>
</xsl:stylesheet>
-
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=527038&r1=527037&r2=527038
==============================================================================
--- 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 Mon Apr 9 22:45:15 2007
@@ -21,13 +21,13 @@
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: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]]"/>
@@ -38,7 +38,6 @@
</xsl:choose>
</xsl:element>
</xsl:template>
-
<xsl:template match="descriptor">
<xsl:variable name="name">
<xsl:choose>
@@ -50,12 +49,14 @@
</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>
+ <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>
-
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=527038&r1=527037&r2=527038
==============================================================================
--- 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 Mon Apr 9 22:45:15 2007
@@ -21,27 +21,28 @@
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: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="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: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>
@@ -53,12 +54,14 @@
</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>
+ <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>
-
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=527038&r1=527037&r2=527038
==============================================================================
--- 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 Mon Apr 9 22:45:15 2007
@@ -21,9 +21,7 @@
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>
@@ -31,14 +29,16 @@
<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="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: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>
@@ -50,12 +50,14 @@
</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>
+ <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>
-
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=527038&r1=527037&r2=527038
==============================================================================
--- 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 Mon Apr 9 22:45:15 2007
@@ -25,246 +25,226 @@
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: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" />
+ <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>
+ <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="doap:programming-language">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="."/>_lang.html</xsl:attribute>
+ <xsl:template match="@rdf:resource"><a>
+ <xsl:attribute name="href">
<xsl:value-of select="."/>
- </a>
+ </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: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: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
+ <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
+ </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
+ </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: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>
+ <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>
+ <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>
+ </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>
+ </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>
+ </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>
+ </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>
+ </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>
+ </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>
+ </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:choose>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </section>
</xsl:template>
-
<xsl:template name="project-scm">
-
<div class="content">
<xsl:choose>
<xsl:when test="doap:repository">
@@ -279,66 +259,79 @@
<tr>
<td class="left">Checkout</td>
<td class="right">
- <pre>svn co <xsl:apply-templates select="doap:location/@rdf:resource" /></pre>
+ <pre>svn co <xsl:apply-templates select="doap:location/@rdf:resource" />
+ </pre>
</td>
- </tr>
+ </tr>
</table>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
- <p>No source control information provided.</p>
+ <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>
+ <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: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>
+ </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>
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=527038&r1=527037&r2=527038
==============================================================================
--- 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 Mon Apr 9 22:45:15 2007
@@ -19,27 +19,27 @@
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: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>
+ <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>
+ <xsl:attribute name="src">cocoon:/projectDetails/<xsl:value-of select="$href-noext"/>.source.xml</xsl:attribute>
</cinclude:include>
</descriptor>
</xsl:template>
</xsl:stylesheet>
-
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/content-doap-link.ft
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/content-doap-link.ft?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/content-doap-link.ft (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/themes/common/html/content-doap-link.ft Mon Apr 9 22:45:15 2007
@@ -20,25 +20,25 @@
<description>
content-doap-link will output the doap link with image to the content.
</description>
- <usage><![CDATA[<forrest:contract name="content-doap-link"/>]]></usage>
- <forrest:template
+ <usage>
+<![CDATA[<forrest:contract name="content-doap-link"/>]]>
+ </usage>
+ <forrest:template
xmlns:forrest="http://apache.org/forrest/templates/1.0"
name="content-doap-link" inputFormat="xsl" >
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="defaultVariables" select="'test.html'"/>
<xsl:variable name="skin-img-dir" select="$defaultVariables/*/*[@name='skin-img-dir']/@value"/>
<xsl:variable name="filename-noext" select="$defaultVariables/*/*[@name='filename-noext']/@value"/>
- <xsl:template match="/">
+ <xsl:template match="/">
<forrest:content>
- <forrest:part>
- <a href="{$filename-noext}.rdf" class="format">
- <img class="skin" src="{$skin-img-dir}/doapdoc.gif"
+ <forrest:part><a href="{$filename-noext}.rdf" class="format">
+ <img class="skin" src="{$skin-img-dir}/doapdoc.gif"
alt="doap - icon"/>
- <span class="caption">doap</span>
- </a>
+ <span class="caption">doap</span></a>
</forrest:part>
</forrest:content>
</xsl:template>
- </xsl:stylesheet>
- </forrest:template>
+ </xsl:stylesheet>
+ </forrest:template>
</forrest:contract>
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=527038&r1=527037&r2=527038
==============================================================================
--- 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 Mon Apr 9 22:45:15 2007
@@ -19,37 +19,40 @@
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>
+ <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><doap url="<em>food.rdf</em>"></source>
<ul>
<li><strong>url</strong> attribute indicates the location of the DOAP file.
The <strong>url</strong> attribute is required.
- </li>
+ </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>
+ </li>
</ul>
</description>
-
- <usage><![CDATA[<forrest:contract name="doap-embedded">
+ <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: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">
@@ -57,23 +60,21 @@
</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: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>
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/doap/doap-forrest.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/doap/doap-forrest.xml?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/doap/doap-forrest.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/doap/doap-forrest.xml Mon Apr 9 22:45:15 2007
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- DOAP file for Apache Forrest -->
-
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
@@ -24,38 +23,30 @@
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:asfext="http://projects.apache.org/ns/asfext#"
>
-
<title type="text">Apache Forrest</title>
<author>
<name>Apache Forrest</name>
<uri>http://forrest.apache.org</uri>
</author>
-
<updated>2005-08-09T23:06:00Z</updated>
- <id>tag:apache.org:forrest</id>
-
- <link
+ <id>tag:apache.org:forrest</id><link
rel="alternate"
type="text/html"
hreflang="en"
href="http://forrest.apache.org"/>
-
<entry>
<title>Apache Forrest 0.7</title>
<id>tag:apache.org:forrest:0.7</id>
<updated>2005-08-09T23:06:00Z</updated>
-
<content type="application/rdf+xml">
<doap:Project>
<doap:name>Apache Forrest</doap:name>
<doap:homepage rdf:resource="http://forrest.apache.org"/>
<asfext:pmc rdf:resource="http://forrest.apache.org" />
<doap:created>2005-06-23</doap:created>
-
<doap:shortdesc xml:lang="en">
Aggregated multi-channel documentation framework, separation of concerns.
</doap:shortdesc>
-
<doap:description xml:lang="en">
Apache Forrest is a publishing framework that transforms input from various
sources into a unified presentation in one or more output formats. The
@@ -64,7 +55,6 @@
generate static documents, or be used as a dynamic server, or be deployed by
its automated facility.
</doap:description>
-
<doap:programming-language xml:lang="en">Java</doap:programming-language>
<doap:programming-language xml:lang="en">XML</doap:programming-language>
<doap:category rdf:resource="http://projects.apache.org/category/build-management"/>
@@ -75,25 +65,19 @@
<doap:category rdf:resource="http://projects.apache.org/category/network-server"/>
<doap:category rdf:resource="http://projects.apache.org/category/web-framework"/>
<doap:category rdf:resource="http://projects.apache.org/category/xml"/>
-
<doap:license rdf:resource="http://forrest.apache.org/license.html"/>
-
<doap:download-page
rdf:resource="http://forrest.apache.org/mirrors.cgi"/>
-
<doap:bug-database
rdf:resource="http://forrest.apache.org/issues.html"/>
-
<doap:mailing-list
rdf:resource="http://forrest.apache.org/mail-lists.html"/>
-
<doap:repository>
<doap:SVNRepository>
<doap:browse rdf:resource="http://svn.apache.org/viewvc/forrest/"/>
<doap:location rdf:resource="http://svn.apache.org/repos/asf/forrest/trunk/"/>
</doap:SVNRepository>
</doap:repository>
-
<doap:maintainer>
<foaf:Person>
<foaf:name>The Apache Forrest Project</foaf:name>
@@ -101,7 +85,6 @@
<foaf:mbox rdf:resource="mailto:dev@forrest.apache.org"/>
</foaf:Person>
</doap:maintainer>
-
<doap:release>
<doap:Version>
<doap:name>Latest stable release</doap:name>
@@ -111,5 +94,5 @@
</doap:release>
</doap:Project>
</content>
- </entry>
+ </entry>
</feed>
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/locationmap.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/locationmap.xml?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/locationmap.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/locationmap.xml Mon Apr 9 22:45:15 2007
@@ -16,7 +16,6 @@
limitations under the License.
-->
<locationmap xmlns="http://apache.org/forrest/locationmap/1.0">
-
<components>
<matchers default="lm">
<matcher
@@ -24,22 +23,19 @@
src="org.apache.forrest.locationmap.WildcardLocationMapHintMatcher"/>
</matchers>
<selectors default="exists">
- <selector name="exists" logger="sitemap.selector.exists"
+ <selector name="exists" logger="sitemap.selector.exists"
src="org.apache.forrest.sourceexists.SourceExistsSelector" />
</selectors>
</components>
-
<locator>
<match pattern="doap.descriptor.projectDetails">
<location src="doap.xml" />
- </match>
-
+ </match>
<match pattern="doap.descriptor.forrest">
<location src="{properties:content}doap/doap-forrest.xml" />
- </match>
-
+ </match>
<match pattern="doap.transform.*.*">
<location src="resources/stylesheets/{1}-to-{2}.xsl"/>
- </match>
+ </match>
</locator>
</locationmap>
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/index.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/index.xml?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/index.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/index.xml Mon Apr 9 22:45:15 2007
@@ -16,128 +16,144 @@
limitations under the License.
-->
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">
-<document>
- <header>
- <title>Welcome to the org.apache.forrest.plugin.input.doap Plugin</title>
- </header>
- <body>
+<document>
+ <header>
+ <title>Welcome to the org.apache.forrest.plugin.input.doap Plugin</title>
+ </header>
+ <body>
<section id="overview">
<title>Apache Forrest - org.apache.forrest.plugin.input.doap Plugin</title>
- <p>Renders DOAP files in a human readable form.</p>
- </section>
-
+ <p>
+ Renders DOAP files in a human readable form.
+ </p>
+ </section>
<section>
<title>Project Details</title>
- <p>Project details are generated from a project descriptor file.
- This file can be in any of the followin formats:</p>
-
+ <p>
+ Project details are generated from a project descriptor file. This file
+ can be in any of the followin formats:
+ </p>
<ul>
<li>DOAP</li>
<li>DOAP over ATOM</li>
</ul>
-
- <note>We need your help in adding more formats.</note>
-
- <p>The location of this descriptor file is specified in the locationmap
- with the hint <code>doap.descriptor</code>. This defaults to
- a file clled doap.xml in the root of your projects content directory.
- To place your descriptor
- in a different location simply add
- a matcher like that shown below in your project locationmap
- file.</p>
-
- <source><![CDATA[
+ <note>
+ We need your help in adding more formats.
+ </note>
+ <p>
+ The location of this descriptor file is specified in the locationmap
+ with the hint <code>doap.descriptor</code>. This defaults to a file
+ clled doap.xml in the root of your projects content directory. To place
+ your descriptor in a different location simply add a matcher like that
+ shown below in your project locationmap file.
+ </p>
+ <source>
+<![CDATA[
<match pattern="doap.descriptor">
<location src="[path/to/descriptor/file]" />
</match>
- ]]></source>
-
- <p>To retrieve the project DOAP file in its raw form
- request the file <code>/projectDetails/source.xml</code>.</p>
-
- <p>To retrieve the project details page request the file
- <code>/projectDetails.[FORMAT]</code>.</p>
-
+ ]]>
+ </source>
+ <p>
+ To retrieve the project DOAP file in its raw form request the file
+ <code>/projectDetails/source.xml</code>.
+ </p>
+ <p>
+ To retrieve the project details page request the file
+ <code>/projectDetails.[FORMAT]</code>.
+ </p>
<section>
<title>Multiple Projects</title>
- <p>You can use the projectInfo plugin to pull together project
- information for multiple projects. For example, take a look at
- the project details for
- <a href="projectDetails.forrest.html">Apache Forrest</a>.</p>
-
- <p>Using the locatoinmap you can retrieve this content from
- anywhere you want, for example, the DOAP file for the Forrest
- project comes from directly from SVN, thus we are always
- assured of it being up to date.</p>
-
- <p>To retrieve the project details of another project make a request
- for <code>projectDetails/projectDetails.[PROJECT_NAME].html</code>. For this to work
- your project locationmap must have an entry like this:</p>
-
- <source><![CDATA[
+ <p>
+ You can use the projectInfo plugin to pull together project
+ information for multiple projects. For example, take a look at the
+ project details for <a href="projectDetails.forrest.html">Apache
+ Forrest</a>.
+ </p>
+ <p>
+ Using the locatoinmap you can retrieve this content from anywhere you
+ want, for example, the DOAP file for the Forrest project comes from
+ directly from SVN, thus we are always assured of it being up to date.
+ </p>
+ <p>
+ To retrieve the project details of another project make a request for
+ <code>projectDetails/projectDetails.[PROJECT_NAME].html</code>. For
+ this to work your project locationmap must have an entry like this:
+ </p>
+ <source>
+<![CDATA[
<match pattern="doap.descriptor.forrest">
<location src="http://svn.apache.org/repos/asf/forrest/trunk/site-author/content/doap.xml"/>
</match>
- ]]></source>
-
-<warning>
-FOR-910 "project DOAP file retrieved numerous times during docs generation"
-so use a local copy instead.
-</warning>
-
- <p>Of course, if you have a central location for all your project descriptor
- files you could use a match like this:</p>
-
- <source><![CDATA[
+ ]]>
+ </source>
+ <warning>
+ FOR-910 "project DOAP file retrieved numerous times during docs
+ generation" so use a local copy instead.
+ </warning>
+ <p>
+ Of course, if you have a central location for all your project
+ descriptor files you could use a match like this:
+ </p>
+ <source>
+<![CDATA[
<match pattern="doap.descriptor.*">
<location src="path_to_descriptors/{1}.xml"/>
</match>
- ]]></source>
-
- <warning>The indexing of projects (described below) does not currently work with
- wildcard matchers in the locationmap.</warning>
-
+ ]]>
+ </source>
+ <warning>
+ The indexing of projects (described below) does not currently work
+ with wildcard matchers in the locationmap.
+ </warning>
</section>
-
<section>
<title>Project Indexes</title>
- <p>The system will automatically create an index of projects from your
- projects locationmap file. For example, the "Projects" section of the
- navigation on the left is automatically generated.</p>
-
- <note>There is considerable repetition in the indexes in this demo. The
- intention is to show the range of indexes that can be created. You should
- select the most suitable for your individual project.</note>
-
- <warning>The indexes to be included in your site navigation only work
- correctly when generating a static site. You should only use page based
- indexes for dynamic sites.</warning>
+ <p>
+ The system will automatically create an index of projects from your
+ projects locationmap file. For example, the "Projects" section of the
+ navigation on the left is automatically generated.
+ </p>
+ <note>
+ There is considerable repetition in the indexes in this demo. The
+ intention is to show the range of indexes that can be created. You
+ should select the most suitable for your individual project.
+ </note>
+ <warning>
+ The indexes to be included in your site navigation only work correctly
+ when generating a static site. You should only use page based indexes
+ for dynamic sites.
+ </warning>
</section>
-
<section>
<title>Dispatcher</title>
-
- <p>The DOAP plugin provides dispatcher templates for oring with
- DOAP files. For usage instructions see the docs for the
- <a href="/ls.contracts.org.apache.forrest.plugin.input.doap.html">doap templates</a>.</p>
+ <p>
+ The DOAP plugin provides dispatcher templates for oring with DOAP
+ files. For usage instructions see the docs for the
+ <a href="/ls.contracts.org.apache.forrest.plugin.input.doap.html">doap
+ templates</a>.
+ </p>
</section>
-
</section>
-
<section id="samples">
<title>Samples</title>
- <p>This section includes links to a number of samples using this plugin. The
- plugin is intended to be self documenting through these samples. If you
- require further help please ask on the user mailing list.</p>
-
+ <p>
+ This section includes links to a number of samples using this plugin.
+ The plugin is intended to be self documenting through these samples. If
+ you require further help please ask on the user mailing list.
+ </p>
<ul>
- <li><fixme author="rdg">Add a link to a sample here...</fixme></li>
- <li><fixme author="rdg">Add another sample link here...</fixme></li>
+ <li><fixme author="rdg">
+ Add a link to a sample here...
+ </fixme></li>
+ <li><fixme author="rdg">
+ Add another sample link here...
+ </fixme></li>
</ul>
-
- <note>The more samples included here the easier it is for users to
- understand this plugin. If you can provide additional samples please
- do so.</note>
+ <note>
+ The more samples included here the easier it is for users to understand
+ this plugin. If you can provide additional samples please do so.
+ </note>
</section>
</body>
</document>
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/site.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/site.xml?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/site.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/site.xml Mon Apr 9 22:45:15 2007
@@ -15,7 +15,6 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-
<!--
Forrest site.xml
@@ -29,20 +28,17 @@
See http://forrest.apache.org/docs/linking.html for more info
-->
-
<site label="org.apache.forrest.plugin.input.doap" href="" tab=""
xmlns="http://apache.org/forrest/linkmap/1.0"
xmlns:xi="http://www.w3.org/2001/XInclude">
-
<about label="About">
<index label="Index" href="index.html" description="Welcome to org.apache.forrest.plugin.input.doap"/>
<forrestPlugins label="Plugins Index" href="ext:forrest/plugins" description="Index of Forrest Plugins"/>
<changes label="Changes" href="changes.html" description="History of Changes" />
<todo label="Todo" href="todo.html" description="Todo List" />
</about>
-
<projects label="Projects" href="projectDetails/">
- <!--
+<!--
<navIndexes label="Navigation Indexes">
<xi:include href="cocoon://projectDetails/index.siteSnippet.xml"/>
<xi:include href="cocoon://projectDetails/language-Java/index.siteSnippet.xml"/>
@@ -58,15 +54,13 @@
description="A list of all projects, indexed by language"/>
</pageIndexes>
</projects>
-
- <!--
+<!--
The href must be wholesite.html/pdf You can change the labels and node names
<all label="All">
<whole_site_html label="Whole Site HTML" href="wholesite.html"/>
<whole_site_pdf label="Whole Site PDF" href="wholesite.pdf"/>
</all>
-->
-
<external-refs>
<forrest href="http://forrest.apache.org/">
<linking href="docs/linking.html"/>
@@ -76,5 +70,4 @@
<plugins href="docs/plugins"/>
</forrest>
</external-refs>
-
</site>
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/tabs.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/tabs.xml?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/tabs.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/content/xdocs/tabs.xml Mon Apr 9 22:45:15 2007
@@ -16,13 +16,11 @@
limitations under the License.
-->
<!DOCTYPE tabs PUBLIC "-//APACHE//DTD Cocoon Documentation Tab V1.1//EN" "http://forrest.apache.org/dtd/tab-cocoon-v11.dtd">
-
<tabs software="MyProj"
title="MyProj"
copyright="Foo"
xmlns:xlink="http://www.w3.org/1999/xlink">
-
- <!-- The rules for tabs are:
+<!-- The rules for tabs are:
@dir will always have '/@indexfile' added.
@indexfile gets appended to @dir if the tab is selected. Defaults to 'index.html'
@href is not modified unless it is root-relative and obviously specifies a
@@ -32,12 +30,10 @@
Tabs can be embedded to a depth of two. The second level of tabs will only
be displayed when their parent tab is selected.
-->
-
<tab id="plugins" label="Forrest Plugins" href="http://forrest.apache.org/pluginDocs" indexfile="index.html"/>
<tab id="" label="Plugin Home" dir="" indexfile="index.html"/>
- <!-- Add new tabs here, eg:
+<!-- Add new tabs here, eg:
<tab label="How-Tos" dir="community/howto/"/>
<tab label="XML Site" dir="xml-site/"/>
-->
-
</tabs>
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/resources/themes/pelt.fv
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/resources/themes/pelt.fv?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/resources/themes/pelt.fv (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/resources/themes/pelt.fv Mon Apr 9 22:45:15 2007
@@ -17,27 +17,23 @@
-->
<forrest:views xmlns:forrest="http://apache.org/forrest/templates/1.0"
xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
- <!-- The following variables are used to contact data models and/or contracts. -->
+<!-- The following variables are used to contact data models and/or contracts. -->
<jx:set var="contextPath" value="#{$cocoon/parameters/contextPath}"/>
<jx:set var="getRequest" value="#{$cocoon/parameters/getRequest}"/>
<jx:set var="getRequestExtension" value="#{$cocoon/parameters/getRequestExtension}" />
-
<forrest:view type="fo" hooksXpath="/">
<jx:import uri="cocoon://prepare.tiles.common-fo"/>
</forrest:view>
-
- <!-- CSS View of the request e.g. index.dispatcher.css -->
+<!-- CSS View of the request e.g. index.dispatcher.css -->
<forrest:view type="css" hooksXpath="/">
<jx:import uri="cocoon://prepare.tiles.pelt-css"/>
</forrest:view>
-
<forrest:view type="html" hooksXpath="/html/body">
<forrest:contract name="doap-embedded">
<forrest:property name="doap-embedded-links">
<doap url="/projectDetails/source.xml"/>
</forrest:property>
</forrest:contract>
-
<jx:import uri="cocoon://prepare.tiles.pelt-html"/>
</forrest:view>
</forrest:views>
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/skinconf.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/skinconf.xml?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/skinconf.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/src/documentation/skinconf.xml Mon Apr 9 22:45:15 2007
@@ -15,16 +15,13 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-
<!DOCTYPE skinconfig PUBLIC "-//APACHE//DTD Skin Configuration V0.7-1//EN" "http://forrest.apache.org/dtd/skinconfig-v07-1.dtd"
[
<!ENTITY skinconf-common PUBLIC "-//Apache Forrest//ENTITIES Skin Configuration common plugins V0.7-1//EN" "">
]>
-
<skinconfig>
&skinconf-common;
<project-name>Plugin: org.apache.forrest.plugin.input.doap</project-name>
<project-description>org.apache.forrest.plugin.input.doap plugin for Apache Forrest</project-description>
-
</skinconfig>
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/status.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/status.xml?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/status.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/status.xml Mon Apr 9 22:45:15 2007
@@ -16,27 +16,24 @@
limitations under the License.
-->
<status>
-
<developers>
- <!-- Add new developers here -->
+<!-- Add new developers here -->
<person name="Volunteer needed" email="dev@forrest.apache.org" id="open"/>
</developers>
-
- <!-- Define here the Title of the Context you want to display in the Changes pages.
+<!-- Define here the Title of the Context you want to display in the Changes pages.
id = the context value of actions
title = Title of the Context
- -->
+ -->
<contexts>
- <!-- Add new contexts here -->
- <context id="code" title="Changes to the Code Base"/>
- <context id="docs" title="Changes to Documentation"/>
- <context id="admin" title="Changes to Project Administration"/>
- <context id="design" title="Changes to Design"/>
- <context id="build" title="Changes to Build"/>
- </contexts>
-
+<!-- Add new contexts here -->
+ <context id="code" title="Changes to the Code Base"/>
+ <context id="docs" title="Changes to Documentation"/>
+ <context id="admin" title="Changes to Project Administration"/>
+ <context id="design" title="Changes to Design"/>
+ <context id="build" title="Changes to Build"/>
+ </contexts>
<changes>
- <!-- Add new releases here -->
+<!-- Add new releases here -->
<release version="0.1" date="not-released">
<action dev="RDG" type="add" context="code" due-to="Stuart Yeates" fixes-bug="FOR-967">
Add handling of RSS feeds.
@@ -57,7 +54,6 @@
</action>
</release>
</changes>
-
<todo>
<actions priority="high">
<action context="docs" dev="open">
@@ -71,5 +67,4 @@
</action>
</actions>
</todo>
-
</status>
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.ecs/build.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.ecs/build.xml?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.ecs/build.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.ecs/build.xml Mon Apr 9 22:45:15 2007
@@ -25,10 +25,8 @@
<property name="websiteURL" value="http://forrest.apache.org/pluginDocs/plugins_0_80/org.apache.forrest.plugin.input.ecs"/>
<property name="downloadURL" value="http://forrest.apache.org/plugins/"/>
<property name="publish" value="true"/>
-
<import file="../build.xml"/>
-
- <!-- Add any additional installation work here in the build target, for example:
+<!-- Add any additional installation work here in the build target, for example:
<target name="build"
description="Extract the tools">
<unzip dest="${plugins.localDeploy-dir}/${plugin-name}/resources">
@@ -39,5 +37,3 @@
</target>
-->
</project>
-
-
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.ecs/input.xmap
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.ecs/input.xmap?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.ecs/input.xmap (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.ecs/input.xmap Mon Apr 9 22:45:15 2007
@@ -16,27 +16,22 @@
limitations under the License.
-->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
-
-<map:pipelines>
-
- <map:pipeline>
-
- <map:match pattern="**.ecs.xml">
- <map:generate src="cocoon://{1}.ecs.source.xml"/>
- <map:transform src="resources/stylesheets/ecs2xdoc.xsl">
- <map:parameter name="file" value="{1}"/>
- </map:transform>
- <map:serialize type="xml"/>
- </map:match>
-
- <map:match pattern="**.ecs.source.xml">
- <map:aggregate element="ecs">
- <map:part src="{properties:content.xdocs}/{1}.ecs.local.xml"/>
- <map:part src="{properties:content.xdocs}/{1}.ecs.amazon.xml"/>
- </map:aggregate>
- <map:serialize type="xml"/>
- </map:match>
- </map:pipeline>
-</map:pipelines>
-
+ <map:pipelines>
+ <map:pipeline>
+ <map:match pattern="**.ecs.xml">
+ <map:generate src="cocoon://{1}.ecs.source.xml"/>
+ <map:transform src="resources/stylesheets/ecs2xdoc.xsl">
+ <map:parameter name="file" value="{1}"/>
+ </map:transform>
+ <map:serialize type="xml"/>
+ </map:match>
+ <map:match pattern="**.ecs.source.xml">
+ <map:aggregate element="ecs">
+ <map:part src="{properties:content.xdocs}/{1}.ecs.local.xml"/>
+ <map:part src="{properties:content.xdocs}/{1}.ecs.amazon.xml"/>
+ </map:aggregate>
+ <map:serialize type="xml"/>
+ </map:match>
+ </map:pipeline>
+ </map:pipelines>
</map:sitemap>
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.ecs/resources/stylesheets/ecs2xdoc.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.ecs/resources/stylesheets/ecs2xdoc.xsl?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.ecs/resources/stylesheets/ecs2xdoc.xsl (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.ecs/resources/stylesheets/ecs2xdoc.xsl Mon Apr 9 22:45:15 2007
@@ -15,17 +15,14 @@
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:ecs="http://webservices.amazon.com/ECSECommerceService/2005-07-26"
xmlns:str="http://exslt.org/strings"
xmlns:xi="http://www.w3.org/2001/XInclude"
extension-element-prefixes="str">
-
<xsl:param name="file"/>
<xsl:param name="type"/>
-
<xsl:template match="/">
<document>
<header>
@@ -34,9 +31,7 @@
<title>Search Results</title>
</xsl:when>
<xsl:when test="ecs:ItemLookupResponse">
- <title>
- <xsl:value-of select="ecs:Item/ecs:ItemAttributes/ecs:Title"/>
- </title>
+ <title><xsl:value-of select="ecs:Item/ecs:ItemAttributes/ecs:Title"/></title>
</xsl:when>
</xsl:choose>
</header>
@@ -45,30 +40,21 @@
</body>
</document>
</xsl:template>
-
<xsl:template match="ecs:ItemSearchResponse">
<xsl:apply-templates select="//ecs:Item"/>
</xsl:template>
-
<xsl:template match="ecs:ItemLookupResponse">
<xsl:apply-templates select="//ecs:Item"/>
</xsl:template>
-
<xsl:template match="OperationRequest"></xsl:template>
-
<xsl:template match="Items">
<xsl:apply-templates/>
</xsl:template>
-
<xsl:template match="Request"></xsl:template>
-
<xsl:template match="item"/>
-
<xsl:template match="ecs:Item">
<section>
- <title>
- <xsl:value-of select="ecs:ItemAttributes/ecs:Title"/>
- </title>
+ <title><xsl:value-of select="ecs:ItemAttributes/ecs:Title"/></title>
<xsl:call-template name="images"/>
<xsl:call-template name="additionalImages"/>
<xsl:call-template name="itemAttributes"/>
@@ -78,38 +64,41 @@
<xsl:call-template name="customerReviews"/>
</section>
</xsl:template>
-
<xsl:template name="price">
<xsl:if test="ecs:Offers">
<div id="price">
- <p>Price: <xsl:value-of select="ecs:Offers/ecs:Offer/ecs:OfferListing/ecs:Price/ecs:FormattedPrice"/>
- (<xsl:value-of select="ecs:Offers/ecs:Offer/ecs:OfferListing/ecs:Availability"/>)</p>
+ <p>
+ Price:
+ <xsl:value-of select="ecs:Offers/ecs:Offer/ecs:OfferListing/ecs:Price/ecs:FormattedPrice"/>
+ (
+ <xsl:value-of select="ecs:Offers/ecs:Offer/ecs:OfferListing/ecs:Availability"/>
+ )
+ </p>
</div>
</xsl:if>
</xsl:template>
-
<xsl:template name="itemAttributes">
<div id="ecs_itemAttributes">
<xsl:call-template name="manufacturer"/>
<xsl:call-template name="batteries"/>
</div>
</xsl:template>
-
<xsl:template name="manufacturer">
<xsl:if test="ecs:ItemAttributes/ecs:Manufacturer">
<div id="ecs_manufacturer">
- <p>Manufacturer: <xsl:value-of select="ecs:ItemAttributes/ecs:Manufacturer"/>
+ <p>
+ Manufacturer:
+ <xsl:value-of select="ecs:ItemAttributes/ecs:Manufacturer"/>
</p>
</div>
</xsl:if>
</xsl:template>
-
<xsl:template name="batteries">
<div id="ecs_batteries">
-
<xsl:if test="ecs:ItemAttributes/ecs:Batteries">
<p>
- Batteries Required: <xsl:value-of select="ecs:ItemAttributes/ecs:Batteries"/>
+ Batteries Required:
+ <xsl:value-of select="ecs:ItemAttributes/ecs:Batteries"/>
<xsl:if test="ecs:ItemAttributes/ecs:Batteries/@Units">
x <xsl:value-of select="ecs:ItemAttributes/ecs:Batteries/@Units"/>
</xsl:if>
@@ -124,39 +113,40 @@
</xsl:choose>
</p>
</xsl:if>
-
</div>
</xsl:template>
-
<xsl:template name="customerReviews">
<div id="ecs_customerReviews">
<section>
<title>Customer Reviews</title>
<div class="ecs_customerReviewsSummary">
- <p>Average rating is <xsl:value-of select="ecs:CustomerReviews/ecs:AverageRating"/>
- out of 5.
- (Rated by <xsl:value-of select="ecs:CustomerReviews/ecs:TotalReviews"/> people)</p>
+ <p>
+ Average rating is
+ <xsl:value-of select="ecs:CustomerReviews/ecs:AverageRating"/>
+ out of 5. (Rated by
+ <xsl:value-of select="ecs:CustomerReviews/ecs:TotalReviews"/>
+ people)
+ </p>
</div>
<xsl:apply-templates select="ecs:CustomerReviews/ecs:Review"/>
</section>
</div>
</xsl:template>
-
<xsl:template match="ecs:Review">
<div>
<xsl:attribute name="class">ecs_customerReview_<xsl:value-of select="position()"/>
</xsl:attribute>
<section>
- <title>
- <xsl:value-of select="ecs:Summary"/>
- </title>
+ <title><xsl:value-of select="ecs:Summary"/></title>
<xsl:apply-templates select="ecs:Content"/>
- <p>Rating: <strong><xsl:value-of select="ecs:Rating"/>
- </strong> out of 5</p>
+ <p>
+ Rating: <strong>
+ <xsl:value-of select="ecs:Rating"/>
+ </strong> out of 5
+ </p>
</section>
</div>
</xsl:template>
-
<xsl:template match="ecs:Content">
<xsl:for-each select="str:split(., '<p>')">
<p>
@@ -164,8 +154,6 @@
</p>
</xsl:for-each>
</xsl:template>
-
-
<xsl:template name="editorialReviews">
<div id="ecs_editorialReviews">
<section>
@@ -175,20 +163,16 @@
</section>
</div>
</xsl:template>
-
<xsl:template match="ecs:EditorialReview">
<div>
<xsl:attribute name="class">ecs_editorialReview_<xsl:value-of select="position()"/>
</xsl:attribute>
<section>
- <title>
- <xsl:value-of select="ecs:Source"/>
- </title>
+ <title><xsl:value-of select="ecs:Source"/></title>
<xsl:apply-templates select="ecs:Content"/>
</section>
</div>
</xsl:template>
-
<xsl:template name="images">
<div id="ecs_smallImage">
<img>
@@ -230,7 +214,6 @@
</img>
</div>
</xsl:template>
-
<xsl:template name="additionalImages">
<xsl:for-each select="//ecs:ImageSets/ecs:ImageSet/ecs:MediumImage">
<xsl:if test="@Category != 'primary'">
@@ -252,13 +235,11 @@
</xsl:if>
</xsl:for-each>
</xsl:template>
-
<xsl:template name="moreDetails">
- <div id="ecs_moreDetails">
- <fork>
- <xsl:attribute name="href">
- <xsl:value-of select="ecs:DetailPageURL"/>
- </xsl:attribute>
+ <div id="ecs_moreDetails"><fork>
+ <xsl:attribute name="href">
+ <xsl:value-of select="ecs:DetailPageURL"/>
+ </xsl:attribute>
More Details...
</fork>
</div>