šablona/makra/šifra.xsl
changeset 88 e856711b66e9
parent 84 f866267d7b3c
equal deleted inserted replaced
87:25dec6931f18 88:e856711b66e9
    33 		*
    33 		*
    34 		@algoritmus zatím je výchozím a jediným algoritmem Rot13
    34 		@algoritmus zatím je výchozím a jediným algoritmem Rot13
    35 	-->
    35 	-->
    36 	<xsl:template match="m:šifra">
    36 	<xsl:template match="m:šifra">
    37 		<xsl:variable name="šifra-id">šifra-<xsl:number level="any"/></xsl:variable>
    37 		<xsl:variable name="šifra-id">šifra-<xsl:number level="any"/></xsl:variable>
    38 		<span class="rot13" title="Tento text je „zašifrován“ algoritmem Rot13, abyste si ho omylem nepřečetli. Pokud číst chcete, klikněte na tlačítko…">
    38 		<span class="rot13" title="Tento text je „zašifrován“ algoritmem Rot13, abyste si ho omylem nepřečetli. Pokud číst chcete, klikněte na tlačítko ↹.">
    39 			<span id="{$šifra-id}"><xsl:value-of select="m:rot13(text())"/></span>
    39 			<span id="{$šifra-id}"><xsl:value-of select="m:rot13(text())"/></span>
    40 			<a onclick="javascipt:xwg.rot13('{$šifra-id}'); return false;" href="#{encode-for-uri(' &gt;&gt; zobrazí „zašifrovaný“ text &lt;&lt;')}">↹</a>
    40 			<a onclick="javascipt:xwg.rot13('{$šifra-id}'); return false;" href="#{encode-for-uri(' &gt;&gt; zobrazí „zašifrovaný“ text &lt;&lt;')}">↹</a>
    41 		</span>
    41 		</span>
    42 	</xsl:template>
    42 	</xsl:template>
    43 
    43