xml/prodlužovač.xsl
author František Kučera <franta-hg@frantovo.cz>
Sat, 12 Nov 2011 00:44:35 +0100
changeset 2 1ce61160021c
parent 0 5b2769eb82d5
child 3 ba0753e26d53
permissions -rw-r--r--
XLS: jednoduchá šablona pro zobrazení konfigurace v prohlížeči.
franta-hg@2
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@2
     2
<xsl:stylesheet version="2.0"
franta-hg@2
     3
	xmlns="http://www.w3.org/1999/xhtml"
franta-hg@2
     4
	xmlns:h="http://www.w3.org/1999/xhtml"
franta-hg@2
     5
	xmlns:p="https://trac.frantovo.cz/prodluzovac-odkazu/wiki/xmlns/konfigurace"
franta-hg@2
     6
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
franta-hg@2
     7
	xmlns:fn="http://www.w3.org/2005/xpath-functions"
franta-hg@2
     8
	xmlns:svg="http://www.w3.org/2000/svg"
franta-hg@2
     9
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
franta-hg@2
    10
	exclude-result-prefixes="fn h p xs">
franta-hg@2
    11
	<xsl:output 
franta-hg@2
    12
		method="xml" 
franta-hg@2
    13
		indent="yes" 
franta-hg@2
    14
		encoding="UTF-8"		
franta-hg@2
    15
		doctype-public="-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" 
franta-hg@2
    16
		doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"/>
franta-hg@2
    17
	
franta-hg@2
    18
	<!-- Celý dokument: -->
franta-hg@2
    19
	<xsl:template match="/">
franta-hg@2
    20
		<html>
franta-hg@2
    21
			<head>
franta-hg@2
    22
				<title>Prodlužovač odkazů – konfigurace</title>
franta-hg@2
    23
			</head>
franta-hg@2
    24
			<body>
franta-hg@2
    25
				<p>
franta-hg@2
    26
					Maximální počet přesměrování: 
franta-hg@2
    27
					<xsl:value-of select="p:prodlužovač/p:limitPřesměrování/text()"/>
franta-hg@2
    28
				</p>
franta-hg@2
    29
				
franta-hg@2
    30
				<p>Podporované zkracovače:</p>
franta-hg@2
    31
				<ul>
franta-hg@2
    32
					<xsl:for-each select="p:prodlužovač/p:zkracovače/p:url">
franta-hg@2
    33
						<li>
franta-hg@2
    34
							<xsl:value-of select="text()"/>
franta-hg@2
    35
						</li>
franta-hg@2
    36
					</xsl:for-each>
franta-hg@2
    37
				</ul>
franta-hg@2
    38
			</body>
franta-hg@2
    39
		</html>
franta-hg@2
    40
	</xsl:template>
franta-hg@2
    41
franta-hg@2
    42
</xsl:stylesheet>