Author: rgardler
Date: Mon Sep 10 15:09:41 2007
New Revision: 574386
URL: http://svn.apache.org/viewvc?rev=574386&view=rev
Log:
Support seeAlso element
Added:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-foafExpandedSeeAlso.xsl
(with props)
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/foaf/
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/foaf/rgardler.rdf.xml
(with props)
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/input.xmap
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/locationmap.xml
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/index.xml
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/status.xml
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/input.xmap
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/input.xmap?rev=574386&r1=574385&r2=574386&view=diff
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/input.xmap
(original)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/input.xmap
Mon Sep 10 15:09:41 2007
@@ -90,6 +90,7 @@
</map:match>
<map:match pattern="personDetails/**.xml">
<map:generate src="cocoon:/people/person-{1}/source.xml" />
+ <map:transform src="{lm:foaf.transform.foaf.foafExpandedSeeAlso}"/>
<map:transform src="{lm:foaf.transform.foaf.document}"/>
<map:serialize type="xml-document"/>
</map:match>
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl?rev=574386&r1=574385&r2=574386&view=diff
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl
(original)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl
Mon Sep 10 15:09:41 2007
@@ -21,6 +21,7 @@
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
+ xmlns:wot="http://xmlns.com/wot/0.1/"
exclude-result-prefixes="rdf dc foaf">
<xsl:template match="/">
@@ -252,4 +253,6 @@
</td>
</tr>
</xsl:template>
+
+ <xsl:template match="*"/>
</xsl:stylesheet>
Added:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-foafExpandedSeeAlso.xsl
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-foafExpandedSeeAlso.xsl?rev=574386&view=auto
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-foafExpandedSeeAlso.xsl
(added)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-foafExpandedSeeAlso.xsl
Mon Sep 10 15:09:41 2007
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<!--
+ 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:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:foaf="http://xmlns.com/foaf/0.1/"
+ exclude-result-prefixes="rdf dc foaf">
+
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="rdf:seeAlso">
+ <xsl:variable name="seeAlsoFile"><xsl:value-of
select="@rdf:resource"/></xsl:variable>
+ <xsl:apply-templates
select="document($seeAlsoFile)/rdf:RDF/foaf:Person/*"/>
+ </xsl:template>
+
+ <xsl:template match="@*|*|text()|processing-instruction()|comment()">
+ <xsl:copy>
+ <xsl:apply-templates/>
+ </xsl:copy>
+ </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file
Propchange:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-foafExpandedSeeAlso.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Added:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/foaf/rgardler.rdf.xml
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/foaf/rgardler.rdf.xml?rev=574386&view=auto
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/foaf/rgardler.rdf.xml
(added)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/foaf/rgardler.rdf.xml
Mon Sep 10 15:09:41 2007
@@ -0,0 +1,26 @@
+<?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.
+-->
+<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:foaf="http://xmlns.com/foaf/0.1/">
+ <foaf:Person rdf:ID="rgardler">
+ <foaf:name>Ross Gardler</foaf:name>
+
+ <rdf:seeAlso
rdf:resource="http://people.apache.org/~rgardler/foaf.rdf.xml" />
+ </foaf:Person>
+</rdf:RDF>
\ No newline at end of file
Propchange:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/foaf/rgardler.rdf.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/locationmap.xml
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/locationmap.xml?rev=574386&r1=574385&r2=574386&view=diff
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/locationmap.xml
(original)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/locationmap.xml
Mon Sep 10 15:09:41 2007
@@ -28,11 +28,8 @@
</selectors>
</components>
<locator>
- <match pattern="doap.descriptor.projectDetails">
- <location src="foaf.xml" />
- </match>
- <match pattern="doap.transform.*.*">
- <location src="resources/stylesheets/{1}-to-{2}.xsl"/>
+ <match pattern="foaf.descriptor.*">
+ <location src="{properties:content}foaf/{1}.rdf.xml" />
</match>
</locator>
</locationmap>
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/index.xml
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/index.xml?rev=574386&r1=574385&r2=574386&view=diff
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/index.xml
(original)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/index.xml
Mon Sep 10 15:09:41 2007
@@ -36,10 +36,20 @@
<p>Details of the default FOAF file for this website is currently
supported in the following formats.</p>
<ul>
+ <li><a href="personDetails/source.xml">FOAF</a></li>
+ <li><a href="personDetails.xml">XDoc</a></li>
<li><a href="personDetails.html">HTML</a></li>
<li><a href="personDetails.pdf">PDF</a></li>
- <li><a href="personDetails/source.xml">FOAF</a></li>
- <li><a href="personDetails.xml">XDoC</a></li>
+ </ul>
+
+ <p>It is also possible to process RDF files that use the
rdf:seeAlso element to
+ point at document providing more information. For example:</p>
+
+ <ul>
+ <li><a href="personDetails/rgardler.source.xml">FOAF</a></li>
+ <li><a href="personDetails/rgardler.xml">XDoc</a></li>
+ <li><a href="personDetails/rgardler.html">HTML</a></li>
+ <li><a href="personDetails/rgardler.pdf">PDF</a></li>
</ul>
</section>
<section id="sample-2">
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/status.xml
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/status.xml?rev=574386&r1=574385&r2=574386&view=diff
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/status.xml
(original)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/status.xml
Mon Sep 10 15:09:41 2007
@@ -19,6 +19,7 @@
<developers>
<!-- Add new developers here -->
<person name="Oshani Seneviratne" email="[EMAIL PROTECTED]" id="OS"/>
+ <person name="Ross Gardler" email="[EMAIL PROTECTED]" id="RDG"/>
</developers>
<!-- Define here the Title of the Context you want to display in the Changes
pages.
id = the context value of actions
@@ -35,6 +36,9 @@
<changes>
<!-- Add new releases here -->
<release version="0.1" date="not-released">
+ <action dev="RDG" type="add" context="admin">
+ Support rdf:seeAlso element.
+ </action>
<action dev="OS" type="add" context="admin">
Initial plugin code.
</action>