-
Notifications
You must be signed in to change notification settings - Fork 1
/
about.xsl
73 lines (58 loc) · 2.76 KB
/
about.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<xsl:transform
xmlns:xsl ="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" indent="yes" encoding="utf-8"/>
<xsl:template match="/">
<div xmlns="http://www.w3.org/1999/xhtml">
<h1>XSPF Namespace Document</h1>
<p>This is the namespace of <a href="http://xspf.org">XSPF</a>.</p>
<p>There is <a href="http://xspf.org/xspf-v1.html">documentation</a> and a <a href="XSPF.xsl">GRDDL namespace transformation</a> available.</p>
<h2>Example XSPF</h2>
The below is an example XSPF playlist
<pre>
<?xml version="1.0" encoding="utf-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<title>My playlist</title>
<creator>Jane Doe</creator>
<annotation>My favorite songs</annotation>
<info>http://example.com/myplaylists</info>
<location>http://example.com/myplaylists/myplaylist</location>
<identifier>magnet:?xt=urn:sha1:YNCKHTQCWBTRNJIV4WNAE52SJUQCZO5C</identifier>
<image>http://example.com/img/mypicture</image>
<date>2005-01-08T17:10:47-05:00</date>
<license>http://creativecommons.org/licenses/by/1.0/</license>
<attribution>
<identifier>http://bar.com/secondderived.xspf</identifier>
<location>http://foo.com/original.xspf</location>
</attribution>
<link rel="http://foaf.example.org/namespace/version1">http://socialnetwork.example.org/foaf/mary.rdfs</link>
<meta rel="http://example.org/key">value</meta>
<extension application="http://example.com">
<clip start="25000" end="34500"/>
</extension>
<trackList>
<track>
<location>http://example.com/my.mp3</location>
<identifier>magnet:?xt=urn:sha1:YNCKHTQCWBTRNJIV4WNAE52SJUQCZO5C</identifier>
<title>My Way</title>
<creator>Frank Sinatra</creator>
<annotation>This is my theme song.</annotation>
<info>http://franksinatra.com/myway</info>
<image>http://franksinatra.com/img/myway</image>
<album>Frank Sinatra's Greatest Hits</album>
<trackNum>3</trackNum>
<duration>19200</duration>
<link rel="http://foaf.org/namespace/version1">http://socialnetwork.org/foaf/mary.rdfs</link>
<meta rel="http://example.org/key">value</meta>
<extension application="http://example.com">
<clip start="25000" end="34500"/>
</extension>
</track>
</trackList>
</playlist>
</pre>
</div>
</xsl:template>
<!-- don't pass text thru -->
<xsl:template match="text()|@*">
</xsl:template>
</xsl:transform>