<xsl:stylesheet 
    xmlns:xsl  ="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:h    ="http://www.w3.org/1999/xhtml"
    xmlns:cc   ="http://web.resource.org/cc/"
    xmlns:dc   ="http://purl.org/dc/elements/1.1/"
    xmlns:rdf  ="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:dt   ="http://www.w3.org/2001/XMLSchema#"
    >

<xsl:import href="../../2001/sw/schedScrape.xsl"/>

<div xmlns="http://www.w3.org/1999/xhtml">

<p>This transformation produces formalized Creative Commons licenses
from informal HTML licenses, per <a
href="http://www.w3.org/2003/11/rdf-in-xhtml-proposal">RDF in XHTML
proposal</a>. (see also:
<a href="http://www.w3.org/2003/11/rdf-in-xhtml-demo">demo</a>.)
</p>

<address>
<a href="http://www.w3.org/People/Connolly/">Dan Connolly</a><br />
<small>$Id: grokCC.xsl,v 1.2 2003/11/24 21:57:28 connolly Exp $</small>
</address>
</div>

<xsl:output method="xml" indent="yes"/>

<xsl:template match="h:html">
  <rdf:RDF>

    <xsl:for-each select=".//h:a[@href = 'http://creativecommons.org/licenses/by-nd/1.0/']">
      <cc:Work rdf:about="">
	<cc:license rdf:resource="http://creativecommons.org/licenses/by-nd/1.0/" />
      </cc:Work>

      <cc:License rdf:about="http://creativecommons.org/licenses/by-nd/1.0/">
	<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction" />
	<cc:permits rdf:resource="http://web.resource.org/cc/Distribution" />
	<cc:requires rdf:resource="http://web.resource.org/cc/Notice" />
	<cc:requires rdf:resource="http://web.resource.org/cc/Attribution" />
      </cc:License>

    </xsl:for-each>

  </rdf:RDF>
</xsl:template>


<!-- don't pass text thru -->
<xsl:template match="text()|@*">
</xsl:template>


</xsl:stylesheet>
