i am going to make xspf playlists, yeah
git-svn-id: http://yolanda.mister-muffin.de/svn@66 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
3e22f0fa08
commit
15b5fefb51
2 changed files with 161 additions and 0 deletions
108
trunk/search-results-playlist.xml
Normal file
108
trunk/search-results-playlist.xml
Normal file
|
@ -0,0 +1,108 @@
|
||||||
|
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||||
|
<?xml-stylesheet type="text/xsl" href="./xsl/xhtml.xsl" ?>
|
||||||
|
|
||||||
|
<page
|
||||||
|
locale="en-US"
|
||||||
|
stylesheet="./style/gnutube.css"
|
||||||
|
username="pedobear@myopenid.net"
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
>
|
||||||
|
<searchbar />
|
||||||
|
<results query="video tag:flower">
|
||||||
|
<result id="1">
|
||||||
|
<thumbnail>./video-stills/225x150/4chan_city_mashup.png</thumbnail>
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work rdf:about="./videos/1050x700/4chan_city_mashup.ogg">
|
||||||
|
<dc:title>4Chan City Mashup</dc:title>
|
||||||
|
<dc:creator>Jaques Nouries</dc:creator>
|
||||||
|
<dc:subject>flower</dc:subject>
|
||||||
|
<dc:description>A movie of a flower. And a dinosaur. Having oral contact.</dc:description>
|
||||||
|
<dc:publisher>Anonymous</dc:publisher>
|
||||||
|
<dc:contributor>Long Cat</dc:contributor>
|
||||||
|
<dc:contributor>Tall Pet</dc:contributor>
|
||||||
|
<dc:date>2022-02-22T13:34:56+7:00</dc:date>
|
||||||
|
<dc:type>Video</dc:type>
|
||||||
|
<dc:format>video/x-theora+ogg</dc:format>
|
||||||
|
<dc:identifier>http://gnutube.org/videos/1050x700/4chan_city_mashup.ogg</dc:identifier>
|
||||||
|
<dc:source>ftp://4chan.org/nsfw/flowerpower.mpg</dc:source>
|
||||||
|
<dc:language>en-US</dc:language>
|
||||||
|
<dc:relation>video publishing website</dc:relation>
|
||||||
|
<dc:coverage>Munich</dc:coverage>
|
||||||
|
<dc:rights>Vivendi Universal</dc:rights>
|
||||||
|
</cc:Work>
|
||||||
|
<cc:License rdf:about="http://creativecommons.org/licenses/GPL/2.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:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
|
||||||
|
<cc:requires rdf:resource="http://web.resource.org/cc/ShareAlike" />
|
||||||
|
<cc:requires rdf:resource="http://web.resource.org/cc/SourceCode" />
|
||||||
|
</cc:License>
|
||||||
|
</rdf:RDF>
|
||||||
|
</result>
|
||||||
|
<result id="2">
|
||||||
|
<thumbnail>./video-stills/225x150/4chan_city_mashup.png</thumbnail>
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work rdf:about="./videos/1050x700/4chan_city_mashup.ogg">
|
||||||
|
<dc:title>4Chan City Mashup</dc:title>
|
||||||
|
<dc:creator>Jaques Nouries</dc:creator>
|
||||||
|
<dc:subject>flower</dc:subject>
|
||||||
|
<dc:description>A movie of a flower. And a dinosaur. Having oral contact.</dc:description>
|
||||||
|
<dc:publisher>Anonymous</dc:publisher>
|
||||||
|
<dc:contributor>Long Cat</dc:contributor>
|
||||||
|
<dc:contributor>Tall Pet</dc:contributor>
|
||||||
|
<dc:date>2022-02-22T13:34:56+7:00</dc:date>
|
||||||
|
<dc:type>Video</dc:type>
|
||||||
|
<dc:format>video/x-theora+ogg</dc:format>
|
||||||
|
<dc:identifier>http://gnutube.org/videos/1050x700/4chan_city_mashup.ogg</dc:identifier>
|
||||||
|
<dc:source>ftp://4chan.org/nsfw/flowerpower.mpg</dc:source>
|
||||||
|
<dc:language>en-US</dc:language>
|
||||||
|
<dc:relation>video publishing website</dc:relation>
|
||||||
|
<dc:coverage>Munich</dc:coverage>
|
||||||
|
<dc:rights>Vivendi Universal</dc:rights>
|
||||||
|
</cc:Work>
|
||||||
|
<cc:License rdf:about="http://creativecommons.org/licenses/GPL/2.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:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
|
||||||
|
<cc:requires rdf:resource="http://web.resource.org/cc/ShareAlike" />
|
||||||
|
<cc:requires rdf:resource="http://web.resource.org/cc/SourceCode" />
|
||||||
|
</cc:License>
|
||||||
|
</rdf:RDF>
|
||||||
|
</result>
|
||||||
|
<result id="3">
|
||||||
|
<thumbnail>./video-stills/225x150/4chan_city_mashup.png</thumbnail>
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work rdf:about="./videos/1050x700/4chan_city_mashup.ogg">
|
||||||
|
<dc:title>4Chan City Mashup</dc:title>
|
||||||
|
<dc:creator>Jaques Nouries</dc:creator>
|
||||||
|
<dc:subject>flower</dc:subject>
|
||||||
|
<dc:description>A movie of a flower. And a dinosaur. Having oral contact.</dc:description>
|
||||||
|
<dc:publisher>Anonymous</dc:publisher>
|
||||||
|
<dc:contributor>Long Cat</dc:contributor>
|
||||||
|
<dc:contributor>Tall Pet</dc:contributor>
|
||||||
|
<dc:date>2022-02-22T13:34:56+7:00</dc:date>
|
||||||
|
<dc:type>Video</dc:type>
|
||||||
|
<dc:format>video/x-theora+ogg</dc:format>
|
||||||
|
<dc:identifier>http://gnutube.org/videos/1050x700/4chan_city_mashup.ogg</dc:identifier>
|
||||||
|
<dc:source>ftp://4chan.org/nsfw/flowerpower.mpg</dc:source>
|
||||||
|
<dc:language>en-US</dc:language>
|
||||||
|
<dc:relation>video publishing website</dc:relation>
|
||||||
|
<dc:coverage>Munich</dc:coverage>
|
||||||
|
<dc:rights>Vivendi Universal</dc:rights>
|
||||||
|
</cc:Work>
|
||||||
|
<cc:License rdf:about="http://creativecommons.org/licenses/GPL/2.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:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
|
||||||
|
<cc:requires rdf:resource="http://web.resource.org/cc/ShareAlike" />
|
||||||
|
<cc:requires rdf:resource="http://web.resource.org/cc/SourceCode" />
|
||||||
|
</cc:License>
|
||||||
|
</rdf:RDF>
|
||||||
|
</result>
|
||||||
|
</results>
|
||||||
|
</page>
|
53
trunk/xsl/xspf.xsl
Normal file
53
trunk/xsl/xspf.xsl
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||||
|
<xsl:stylesheet version="1.0"
|
||||||
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
>
|
||||||
|
|
||||||
|
<xsl:output
|
||||||
|
doctype-public="-//W3C//DTD XHTML 1.1//EN"
|
||||||
|
doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
|
||||||
|
encoding="utf8"
|
||||||
|
indent="yes"
|
||||||
|
method="xml"
|
||||||
|
media-type="application/xhtml+xml"
|
||||||
|
omit-xml-declaration="no"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<xsl:template match="results">
|
||||||
|
<xsl:call-template name="searchbar"/>
|
||||||
|
<div>
|
||||||
|
<xsl:value-of select="$locale_strings/str[@id='results_for_query']" />:
|
||||||
|
"<xsl:value-of select="@query" />"
|
||||||
|
</div>
|
||||||
|
<table class="results">
|
||||||
|
<xsl:for-each select="result">
|
||||||
|
<tr class="result">
|
||||||
|
<td>
|
||||||
|
<a>
|
||||||
|
<xsl:attribute name="href">
|
||||||
|
<xsl:value-of select="rdf:RDF/cc:Work/@rdf:about" />
|
||||||
|
</xsl:attribute>
|
||||||
|
<img>
|
||||||
|
<xsl:attribute name="src">
|
||||||
|
<xsl:value-of select="thumbnail" />
|
||||||
|
</xsl:attribute>
|
||||||
|
<xsl:attribute name="alt">
|
||||||
|
<xsl:value-of select="rdf:RDF/cc:Work/dc:title" />
|
||||||
|
</xsl:attribute>
|
||||||
|
</img>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<xsl:value-of select="$locale_strings/str[@id='DC.title']" />: <xsl:value-of select="rdf:RDF/cc:Work/dc:title" /><br />
|
||||||
|
<xsl:value-of select="$locale_strings/str[@id='DC.creator']" />: <xsl:value-of select="rdf:RDF/cc:Work/dc:creator" /><br />
|
||||||
|
<xsl:value-of select="$locale_strings/str[@id='DC.publisher']" />: <xsl:value-of select="rdf:RDF/cc:Work/dc:publisher" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</xsl:for-each>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</xsl:template>
|
Loading…
Reference in a new issue