xslt updated to v0.2

This commit is contained in:
boyska 2022-01-21 00:42:44 +01:00
parent daf0d73ac7
commit 3cee499bec

View file

@ -1,5 +1,7 @@
<?xml version="1.0"?> <?xml version="1.0" ?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:transform version="1.0"
xmlns:show="https://radiomanifest.degenerazione.xyz/v0.2/shows/"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/"> <xsl:template match="/">
<html> <html>
@ -16,22 +18,24 @@
<thead> <thead>
<tr> <tr>
<th>Name</th> <th>Name</th>
<th>Description</th>
<th>Website</th> <th>Website</th>
<th>Feed</th> <th>Feed</th>
<th>Schedule</th> <th>Schedule</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<xsl:for-each select="shows/show"> <xsl:for-each select="//bookmark/info/metadata">
<tr> <tr>
<xsl:variable name="name" select="name"/> <xsl:variable name="website" select="show:website"/>
<xsl:variable name="website" select="website"/> <xsl:variable name="feed" select="show:feed"/>
<xsl:variable name="feed" select="feed"/> <xsl:variable name="description" select="show:feed"/>
<xsl:variable name="schedule" select="schedule"/> <xsl:variable name="schedule" select="show:schedule"/>
<td><xsl:value-of select="name" /></td> <td><xsl:value-of select="show:name" /></td>
<td><xsl:value-of select="show:description" /></td>
<td><a href="{$website}"><xsl:value-of select="website" /></a></td> <td><a href="{$website}"><xsl:value-of select="website" /></a></td>
<td><a href="{$feed}"><xsl:value-of select="feed" /></a></td> <td><a href="{$feed}">Feed</a></td>
<td><a href="{$schedule}"><xsl:value-of select="schedule" /></a></td> <td><a href="{$schedule}">Schedule</a></td>
</tr> </tr>
</xsl:for-each> </xsl:for-each>
</tbody> </tbody>