Browse Source

xslt updated to v0.2

boyska 2 years ago
parent
commit
3cee499bec
1 changed files with 14 additions and 10 deletions
  1. 14 10
      shows-table.xsl

+ 14 - 10
shows-table.xsl

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