getting the rdf from the FOAF schema

Edd Dumbill edd at u...
Fri Jul 5 13:44:14 UTC 2002


in order to get the rdf from the foaf schema i just hacked up this xslt
transform, which i'm using to preprocess files that come into my foaf
processor

<?xml version="1.0"?>
<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#">

<xsl:template match="@*|*|processing-instruction()|comment()">
<xsl:copy>
<xsl:apply-templates
select="*|@*|text()|processing-instruction()|comment()" />
</xsl:copy>
</xsl:template>

<xsl:template match='/'>
<xsl:apply-templates select='//rdf:RDF' />
</xsl:template>

</xsl:stylesheet>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.usefulinc.com/pipermail/foaf-dev/attachments/20020705/d06b3fba/attachment-0001.pgp


More information about the foaf-dev mailing list