1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0"
3 xmlns="http://www.w3.org/1999/xhtml"
4 xmlns:h="http://www.w3.org/1999/xhtml"
5 xmlns:d="https://telco.frantovo.cz/xmlns/dictionary"
6 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7 xmlns:fn="http://www.w3.org/2005/xpath-functions"
8 xmlns:xs="http://www.w3.org/2001/XMLSchema"
9 exclude-result-prefixes="fn h d xs">
14 omit-xml-declaration="yes"/>
16 <xsl:param name="tags"/>
18 <xsl:template match="d:concept">
21 This template should be shortened,
22 if used for dictionaries containing many words.
24 <style type="text/css">
26 border-collapse:collapse;
27 box-shadow: 3px 3px 3px grey;
32 border: 1px solid black;
45 <xsl:for-each select="d:term">
47 <td><xsl:value-of select="@abbreviation"/></td>
48 <td><xsl:value-of select="@completeForm"/></td>
54 <p><xsl:apply-templates select="d:explanation"/></p>
58 <xsl:text>Tags: </xsl:text>
59 <xsl:for-each select="d:tag">
60 <xsl:variable name="tagID" select="text()"/>
61 <xsl:apply-templates/>
63 <xsl:value-of select="$tags/d:tag[@id=$tagID]/@name"/>
65 <xsl:if test="not(position() = last())"><xsl:text>, </xsl:text></xsl:if>