themes.xsl
XML 1.0 document, ASCII text
1<?xml version="1.0" encoding="utf-8"?> 2<xsl:stylesheet 3version="3.1" 4xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 5xmlns:t="https://theme.roundabout-host.com/" 6xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 7xsi:schemaLocation="https://theme.roundabout-host.com/ https://theme.roundabout-host.com/themes.xsd" 8> 9 10<xsl:output method="html" version="5" encoding="UTF-8" indent="yes"/> 11 12<xsl:template match="/"> 13<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> 14<head> 15<title>Themes List</title> 16<link rel="stylesheet" href="required.css" /> 17<link rel="stylesheet" href="style.css" defer="defer" /> 18<link rel="stylesheet" href="breadcrumbs.css" defer="defer" /> 19<link rel="stylesheet" href="code.css" defer="defer" /> 20<link rel="stylesheet" href="fonts.css" defer="defer" /> 21<link rel="stylesheet" href="themes.css" defer="defer" /> 22<meta charset="UTF-8" /> 23<meta name="viewport" content="width=device-width, initial-scale=1.0" /> 24<meta http-equiv="X-UA-Compatible" content="ie=edge" /> 25<link rel="icon" href="favicon.ico" /> 26</head> 27<body> 28<nav aria-label="breadcrumbs"> 29<ol> 30<li><a href="index.html">index</a></li> 31<li><a href="submit.html" aria-current="location">Theme List</a></li> 32</ol> 33</nav> 34<h1>Theme List</h1> 35<p>Here is a list of <xsl:value-of select="count(t:themes/t:theme)" /> themes currently available. 36Want to submit your own theme? Please read <a href="submit.html">submit.html</a>.</p> 37<ul id="ThemeList"> 38<xsl:for-each select="t:themes/t:theme"> 39<li> 40<aside popover="auto" class="theme-list-popover"> 41<xsl:attribute name="id"> 42<xsl:value-of select="t:author"/>-<xsl:value-of select="t:uri"/> 43</xsl:attribute> 44<header> 45<strong>More details on <xsl:value-of select="t:title"/></strong> 46<button> 47<xsl:attribute name="popovertarget"> 48<xsl:value-of select="t:author"/>-<xsl:value-of select="t:uri"/> 49</xsl:attribute> 50close 51</button> 52</header> 53<xsl:choose> 54<xsl:when test="t:description"> 55<p>The following note has been attached to this theme:</p> 56<blockquote><xsl:value-of select="t:description"/></blockquote> 57</xsl:when> 58</xsl:choose> 59<p>This theme is under the license: 60<xsl:choose> 61<xsl:when test="t:license/t:uri"> 62<a> 63<xsl:attribute name="href"> 64<xsl:value-of select="t:license/t:uri"/> 65</xsl:attribute> 66<xsl:value-of select="t:license/t:short"/> 67</a> 68</xsl:when> 69<xsl:otherwise> 70<xsl:value-of select="t:license/t:short"/> 71</xsl:otherwise> 72</xsl:choose> 73.</p> 74<xsl:choose> 75<xsl:when test="t:license/t:long"> 76<p>The following is the license given 77(note: this is only an excerpt or intentionally shortend version):</p> 78<pre><xsl:value-of select="t:license/t:long"/></pre> 79</xsl:when> 80</xsl:choose> 81</aside> 82<table> 83<tr> 84<th 85class="theme-name" colspan="2" 86> 87<big> 88<xsl:value-of select="t:title"/> 89</big> 90</th> 91<td> 92<small> 93<a rel="external"> 94<xsl:attribute name="href"> 95<xsl:value-of select="t:author/@uri"/> 96</xsl:attribute> 97<xsl:value-of select="t:author"/> 98</a> 99</small> 100</td> 101</tr> 102<tr> 103<td colspan="2"> 104<a rel="nofollow" class="theme-css-link"> 105<xsl:attribute name="href"> 106themes/<xsl:value-of select="t:uri"/> 107</xsl:attribute> 108Theme CSS 109</a> 110</td> 111<td> 112<button popovertargetaction="toggle"> 113<xsl:attribute name="popovertarget"> 114<xsl:value-of select="t:author"/>-<xsl:value-of select="t:uri"/> 115</xsl:attribute> 116INFO 117</button> 118</td> 119</tr> 120</table> 121</li> 122</xsl:for-each> 123</ul> 124</body> 125</html> 126</xsl:template> 127 128</xsl:stylesheet> 129