creative commons xml stuff works kinda crappy

at least i have figured it out now
could sleep this night (damn you, party)
so rest follows tomorrow or in the next few days



git-svn-id: http://yolanda.mister-muffin.de/svn@83 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
erlehmann 2007-10-18 04:50:49 +00:00
parent 44d82d6849
commit eff95e520d
6 changed files with 34 additions and 3 deletions

View file

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View file

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -131,6 +131,12 @@ div
text-align: center;
}
div.videoccdata
{
text-align: center;
margin: 4em;
}
div.videometadata
{
text-align: center;

View file

@ -326,6 +326,34 @@
<xsl:value-of select="rdf:RDF/cc:Work/dc:title" />
</a>
</div>
<div class="videoccdata">
<!-- unfinished bizness -->
Permits:<br />
<xsl:for-each select="rdf:RDF/cc:License/cc:permits">
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/Reproduction'">
REPRODUCTION
</xsl:if>
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/Distribution'">
DISTRIBUTION
</xsl:if>
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/DerivativeWorks'">
DERIVATES
</xsl:if>
</xsl:for-each>
<br />
Requires:<br />
<xsl:for-each select="rdf:RDF/cc:License/cc:requires">
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/Notice'">
<img src="./images/cc/cc-by.png" />
</xsl:if>
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/ShareAlike'">
<img src="./images/cc/cc-sa.png" />
</xsl:if>
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/SourceCode'">
SOURCE
</xsl:if>
</xsl:for-each>
</div>
<div class="videometadata">
<xsl:value-of select="$locale_strings/str[@id='DC.title']" />:<br />
<xsl:value-of select="rdf:RDF/cc:Work/dc:title" /><br /><br />
@ -344,9 +372,6 @@
<xsl:value-of select="$locale_strings/str[@id='DC.rights']" />:<br />
<xsl:value-of select="rdf:RDF/cc:Work/dc:rights" /><br /><br />
</div>
<div class="videocreativecommonsdata">
<!-- here be dragons -->
</div>
</xsl:template>