forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bd...@apache.org
Subject svn commit: r565251 - in /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf: resources/stylesheets/foaf-to-index.xsl src/documentation/content/xdocs/samples/ src/documentation/content/xdocs/samples/foafIndex.xml
Date Mon, 13 Aug 2007 06:25:07 GMT
Author: bdube
Date: Sun Aug 12 23:25:06 2007
New Revision: 565251

URL: http://svn.apache.org/viewvc?view=rev&rev=565251
Log:
Add files from patch. Thanks Oshani Seneviratne. FOR-1020

Added:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-index.xsl
  (with props)
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/samples/
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/samples/foafIndex.xml
  (with props)

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-index.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-index.xsl?view=auto&rev=565251
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-index.xsl
(added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-index.xsl
Sun Aug 12 23:25:06 2007
@@ -0,0 +1,67 @@
+<?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:foaf="http://xmlns.com/foaf/0.1/"
+>
+
+<xsl:template match="/">
+<document>
+   <xsl:call-template name="header" />
+   <xsl:call-template name="body" />
+</document>
+</xsl:template>
+
+<xsl:template name="header">
+   <header>
+   <title>Index and Explore FOAF files</title>
+   </header>
+</xsl:template>
+
+<xsl:template name="body">
+   <body>
+   <section>
+      <title>FOAF Index</title>
+      <p>To list and explore FOAF data here, edit the <code>samples/foafIndex.xml</code>
and
+      add the URIs of the FOAF documents.</p>
+      <p>Usage:</p>
+         <source>
+            <![CDATA[
+   <people>
+      <person id="johnDoe" location="http://example.com/john/foaf.rdf" />
+      <person id="janeDoe" location="http://example.com/jane/foaf.rdf" />
+   </people>]]>
+        </source>
+        
+      <p>The following list is generated from the entries listed in <code>samples/foafIndex.xml</code>.</p>
+      <p><ul>
+      <xsl:for-each select="people/person">
+         <xsl:variable name='target'>
+         <xsl:value-of select="@location"/>
+         </xsl:variable>
+  	     <li><a>
+            <xsl:attribute name="href">person-<xsl:value-of select="substring-after
($target, 'http://')"/>.html</xsl:attribute>
+             <xsl:value-of select="@id"/>
+         </a></li>   
+      </xsl:for-each>
+      </ul></p>
+   </section>	
+   </body>
+</xsl:template>
+
+</xsl:stylesheet>

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

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/samples/foafIndex.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/samples/foafIndex.xml?view=auto&rev=565251
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/samples/foafIndex.xml
(added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/samples/foafIndex.xml
Sun Aug 12 23:25:06 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.
+-->
+
+<!--Note
+List the URIs of the FOAF files that need to be indexed using this plugin here.
+-->
+
+<people>
+   <person id="johnDoe" location="http://people.apache.org/~oshani/john/foaf.rdf" />
+   <person id="janeDoe" location="http://people.apache.org/~oshani/jane/foaf.rdf" />
+</people>

Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/src/documentation/content/xdocs/samples/foafIndex.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message