You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2007/09/10 00:34:04 UTC
svn commit: r574092 -
/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl
Author: rgardler
Date: Sun Sep 9 15:34:00 2007
New Revision: 574092
URL: http://svn.apache.org/viewvc?rev=574092&view=rev
Log:
Allow RDF docs to have multiple foaf:Person elements
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.foaf/resources/stylesheets/foaf-to-document.xsl
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=574092&r1=574091&r2=574092&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 Sun Sep 9 15:34:00 2007
@@ -24,24 +24,15 @@
exclude-result-prefixes="rdf dc foaf">
<xsl:template match="/">
- <xsl:apply-templates select="rdf:RDF/foaf:Person"/>
+ <document>
+ <xsl:call-template name="header" />
+ <body>
+ <xsl:apply-templates select="rdf:RDF/foaf:Person"/>
+ </body>
+ </document>
</xsl:template>
<xsl:template match="foaf:Person">
- <document>
- <xsl:call-template name="header" />
- <xsl:call-template name="body" />
- </document>
-</xsl:template>
-
-<xsl:template name="header">
- <header>
- <title>Information about <xsl:value-of select="foaf:name"/></title>
- </header>
-</xsl:template>
-
-<xsl:template name="body">
-<body>
<section>
<title>FOAF Metadata of <xsl:value-of select="foaf:name"/> </title>
<xsl:choose>
@@ -116,9 +107,13 @@
</table>
</p>
</section>
+</xsl:template>
- </body>
- </xsl:template>
+<xsl:template name="header">
+ <header>
+ <title>Person details</title>
+ </header>
+</xsl:template>
<xsl:template match="foaf:*">
<section>