1.1 --- a/java/dictionary-generator/concept.xsl Wed Jul 10 14:32:45 2013 +0200
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,72 +0,0 @@
1.4 -<?xml version="1.0" encoding="UTF-8"?>
1.5 -<xsl:stylesheet version="1.0"
1.6 - xmlns="http://www.w3.org/1999/xhtml"
1.7 - xmlns:h="http://www.w3.org/1999/xhtml"
1.8 - xmlns:d="https://telco.frantovo.cz/xmlns/dictionary"
1.9 - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
1.10 - xmlns:fn="http://www.w3.org/2005/xpath-functions"
1.11 - xmlns:xs="http://www.w3.org/2001/XMLSchema"
1.12 - exclude-result-prefixes="fn h d xs">
1.13 - <xsl:output
1.14 - method="xml"
1.15 - indent="no"
1.16 - encoding="UTF-8"
1.17 - omit-xml-declaration="yes"/>
1.18 -
1.19 - <xsl:param name="tags"/>
1.20 -
1.21 - <xsl:template match="d:concept">
1.22 - <div>
1.23 - <!--
1.24 - This template should be shortened,
1.25 - if used for dictionaries containing many words.
1.26 - -->
1.27 - <style type="text/css">
1.28 - table {
1.29 - border-collapse:collapse;
1.30 - box-shadow: 3px 3px 3px grey;
1.31 - margin-top: 10px;
1.32 - margin-bottom: 10px;
1.33 - }
1.34 - td, th {
1.35 - border: 1px solid black;
1.36 - padding-top: 4px;
1.37 - padding-bottom: 4px;
1.38 - padding-left: 6px;
1.39 - padding-right: 6px;
1.40 - font-weight: normal;
1.41 - }
1.42 - p.tags {
1.43 - font-size: 80%;
1.44 - }
1.45 - </style>
1.46 - <table>
1.47 - <tbody>
1.48 - <xsl:for-each select="d:term">
1.49 - <tr>
1.50 - <td><xsl:value-of select="@abbreviation"/></td>
1.51 - <td><xsl:value-of select="@completeForm"/></td>
1.52 - </tr>
1.53 - </xsl:for-each>
1.54 - </tbody>
1.55 - </table>
1.56 -
1.57 - <p><xsl:apply-templates select="d:explanation"/></p>
1.58 -
1.59 - <xsl:if test="d:tag">
1.60 - <p class="tags">
1.61 - <xsl:text>Tags: </xsl:text>
1.62 - <xsl:for-each select="d:tag">
1.63 - <xsl:variable name="tagID" select="text()"/>
1.64 - <xsl:apply-templates/>
1.65 - <!--
1.66 - <xsl:value-of select="$tags/d:tag[@id=$tagID]/@name"/>
1.67 - -->
1.68 - <xsl:if test="not(position() = last())"><xsl:text>, </xsl:text></xsl:if>
1.69 - </xsl:for-each>
1.70 - </p>
1.71 - </xsl:if>
1.72 - </div>
1.73 - </xsl:template>
1.74 -
1.75 -</xsl:stylesheet>