forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r581629 - in /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap: input.xmap resources/stylesheets/rdf-to-rdfCInclude.xsl status.xml
Date Wed, 03 Oct 2007 15:28:04 GMT
Author: rgardler
Date: Wed Oct  3 08:28:03 2007
New Revision: 581629

URL: http://svn.apache.org/viewvc?rev=581629&view=rev
Log:
Add support for expanding rdf:resource in various contributors

Added:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/rdf-to-rdfCInclude.xsl
  (with props)
Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/input.xmap
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/status.xml

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?rev=581629&r1=581628&r2=581629&view=diff
==============================================================================
--- 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 Wed Oct
 3 08:28:03 2007
@@ -120,6 +120,8 @@
       </map:match>
       <map:match pattern="projectDetails/**.source.xml">
         <map:generate type="file" src="{lm:doap.descriptor.{1}}" />
+        <map:transform src="{lm:doap.transform.rdf.rdfCInclude}"/>
+        <map:transform type="cinclude"/>
         <map:serialize type="xml"/>
       </map:match>
       <map:match pattern="projectDetails.xml">        

Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/rdf-to-rdfCInclude.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/rdf-to-rdfCInclude.xsl?rev=581629&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/rdf-to-rdfCInclude.xsl
(added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/rdf-to-rdfCInclude.xsl
Wed Oct  3 08:28:03 2007
@@ -0,0 +1,49 @@
+<?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.
+-->
+<!-- 
+  Expands replaces rdf:resource attributes by CInclude elements to allow later
+  processing stages to retrieve those resources and embed them into the RDF document. 
+ -->
+<xsl:stylesheet version = "1.0"
+                xmlns:atom="http://www.w3.org/2005/Atom"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
+                xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
+                xmlns:doap="http://usefulinc.com/ns/doap#"
+                xmlns:foaf="http://xmlns.com/foaf/0.1/"
+                xmlns:dc="http://purl.org/dc/elements/1.1/"
+                xmlns:asfext="http://projects.apache.org/ns/asfext#"
+                xmlns:cinclude="http://apache.org/cocoon/include/1.0"
+                >                
+  <xsl:template match="/">
+    <xsl:apply-templates/>
+  </xsl:template>
+  
+  <!-- SourceKibitzer uses rdf:resource to indicate contributors -->
+  <xsl:template match="doap:maintainer/@rdf:resource|doap:developer/@rdf:resource|doap:documentor/@rdf:resource|doap:translator/@rdf:resource|doap:tester/@rdf:resource|doap:helperr/@rdf:resource">
+      <cinclude:cached-include>
+        <xsl:attribute name="src"><xsl:value-of select="."/></xsl:attribute>
+      </cinclude:cached-include>
+  </xsl:template>
+  
+  <xsl:template match="@*|*|text()|processing-instruction()|comment()">
+    <xsl:copy>
+      <xsl:apply-templates select="@*|*|text()|processing-instruction()|comment()"/>
+    </xsl:copy>
+  </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file

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

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?rev=581629&r1=581628&r2=581629&view=diff
==============================================================================
--- 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 Wed Oct
 3 08:28:03 2007
@@ -35,6 +35,9 @@
   <changes>
 <!-- Add new releases here -->
     <release version="0.1" date="not-released">
+      <action dev="RDG" type="add" context="code" importance="low">
+        Support things like &lt;doap:mainatiner rdf:resource="http://foo.com/bar.rdf"/&gt;

+      </action>
       <action dev="RDG" type="add" context="code">
         Map category URIs to names by providing an XML mapping file. This is
         a file provided by the src content, but could just as easily be



Mime
View raw message