author | František Kučera <franta-hg@frantovo.cz> |
Sat, 12 Nov 2011 17:02:44 +0100 | |
changeset 3 | ba0753e26d53 |
parent 2 | 1ce61160021c |
permissions | -rw-r--r-- |
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@3 | 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@3 | 30 |
<xsl:choose> |
franta-hg@3 | 31 |
<xsl:when test="p:prodlužovač/p:tvářitSeJakoProhlížeč"> |
franta-hg@3 | 32 |
<p>V HTTP požadavcích budeme posílat hlavičku User-Agent s hodnotou:</p> |
franta-hg@3 | 33 |
<pre><xsl:value-of select="p:prodlužovač/p:tvářitSeJakoProhlížeč/text()"/></pre> |
franta-hg@3 | 34 |
<p>Server si tedy bude myslet, že jsme tento www prohlížeč.</p> |
franta-hg@3 | 35 |
</xsl:when> |
franta-hg@3 | 36 |
<xsl:otherwise> |
franta-hg@3 | 37 |
<p>V HTTP požadavcích nebudeme posílat žádnou hlavičku User-Agent.</p> |
franta-hg@3 | 38 |
</xsl:otherwise> |
franta-hg@3 | 39 |
</xsl:choose> |
franta-hg@3 | 40 |
|
franta-hg@3 | 41 |
|
franta-hg@2 | 42 |
<p>Podporované zkracovače:</p> |
franta-hg@2 | 43 |
<ul> |
franta-hg@2 | 44 |
<xsl:for-each select="p:prodlužovač/p:zkracovače/p:url"> |
franta-hg@3 | 45 |
<xsl:element name="li"> |
franta-hg@3 | 46 |
<xsl:if test="@popis"> |
franta-hg@3 | 47 |
<xsl:attribute name="title"><xsl:value-of select="@popis"/></xsl:attribute> |
franta-hg@3 | 48 |
</xsl:if> |
franta-hg@3 | 49 |
|
franta-hg@3 | 50 |
<code><xsl:value-of select="text()"/></code> |
franta-hg@3 | 51 |
|
franta-hg@3 | 52 |
<xsl:if test="@záležíNaVelikosti = 'true'"> |
franta-hg@3 | 53 |
<xsl:call-template name="ikonaZáležíNaVelikosti"/> |
franta-hg@3 | 54 |
</xsl:if> |
franta-hg@3 | 55 |
</xsl:element> |
franta-hg@2 | 56 |
</xsl:for-each> |
franta-hg@2 | 57 |
</ul> |
franta-hg@2 | 58 |
</body> |
franta-hg@2 | 59 |
</html> |
franta-hg@2 | 60 |
</xsl:template> |
franta-hg@3 | 61 |
|
franta-hg@3 | 62 |
|
franta-hg@3 | 63 |
<xsl:template name="ikonaZáležíNaVelikosti"> |
franta-hg@3 | 64 |
<img alt="záleží na velikosti písmen" |
franta-hg@3 | 65 |
title="Záleží na velikosti písmen" |
franta-hg@3 | 66 |
style="margin-left: 8px;" |
franta-hg@3 | 67 |
src="data:image/png;base64, |
franta-hg@3 | 68 |
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACm0lEQVR42o3S3UuTURwH8EUXFaYG |
franta-hg@3 | 69 |
WimaK23zraJ/QWLiyA2jksl0jTZFzaQZqGAMUjS1MUMMi27CkNFFdrMGTmR24Zq0mCCSsGmytnRv |
franta-hg@3 | 70 |
zHTqdNq333MICZ8bLz485znnPN/nd14EAI7k2pPr5nxdMXIb8iHUiiCsFSPvQYH5yAGFj6/g/dJp |
franta-hg@3 | 71 |
WMLJmPidwmTdywMbHBwcPE6UxEYWSIC4yACRkyRRc6GV+0A1nH4QcvauEAKDwZBMnCaTCXNzc1he |
franta-hg@3 | 72 |
Xobf78fi4iIcDgfGxsbQ2d/pFz8sdt95cQ5vZpOgGDjDQtJu50DQ3d390mKxIBwOIxKJcFg7Go0y |
franta-hg@3 | 73 |
P34toaxfCtnzTDz9dAq3DOlILc9iyzmvuAiBXq/3+nw+NnlychJdXV2gvu3e3l7YbDZo392HtP8C |
franta-hg@3 | 74 |
6l6fwM2+DGSrL3/PVF6ayKzORY5GZBa0t7d/IPjHRtIAcP2FHR0df1Rvq1FuFKKsLxtFrVcXRM1F |
franta-hg@3 | 75 |
Gf9v7kFDp9OJSR0ZJl/a2triZrMZK9EV1I5qIXl2AyX6EuHh0xE0NjYeI61U9p7VasX8/DxCoRDi |
franta-hg@3 | 76 |
8TgSicSBlpYW0LyTvACtVvtoaGgIGxsb2N3dxdbWFtxuN7gwo9GIYDCI/f19NDU1gebyA2pqahyr |
franta-hg@3 | 77 |
q6vsL+Pj41Cr1THqM5EGMksnwoI1Gg3onR9QVVW1F4vFsL6+DoVCsV1ZWZnCDdBTrFKpdgKBANbW |
franta-hg@3 | 78 |
1qBUKkF9/ICKiooglcxKpTWC3j+TjzQ5xt2Pzc1NFl5fX8/GeAFSqXSU2wMqlYVMT09jamoK3LK8 |
franta-hg@3 | 79 |
Xi/sdju3P6wKuVwOXoBEIskoLS392dPTA6fTya6xy+XCyMgIZDLZDi0DMzMz8Hg8oJ8leAEAuJBU |
franta-hg@3 | 80 |
0ke+kRBxklekgNSSr8THtQ8H/AW7B5q5mb/toAAAAABJRU5ErkJggg== |
franta-hg@3 | 81 |
"/> |
franta-hg@3 | 82 |
<!-- cat /usr/share/icons/oxygen/16x16/actions/format-font-size-more.png | base64 --> |
franta-hg@3 | 83 |
</xsl:template> |
franta-hg@2 | 84 |
|
franta-hg@2 | 85 |
</xsl:stylesheet> |