equal
deleted
inserted
replaced
17 encoding="UTF-8" |
17 encoding="UTF-8" |
18 doctype-public="-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" |
18 doctype-public="-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" |
19 doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"/> |
19 doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"/> |
20 |
20 |
21 <xsl:param name="vstup" select="'../vstup/'"/> |
21 <xsl:param name="vstup" select="'../vstup/'"/> |
|
22 <xsl:param name="výstup" select="'../výstup/'"/> |
22 <xsl:param name="vstupníPřípona" select="'.xml'"/> |
23 <xsl:param name="vstupníPřípona" select="'.xml'"/> |
23 <xsl:param name="výstupníPřípona" select="'.xhtml'"/> |
24 <xsl:param name="výstupníPřípona" select="'.xhtml'"/> |
24 <xsl:param name="vsuvkováPřípona" select="'.inc'"/> |
25 <xsl:param name="vsuvkováPřípona" select="'.inc'"/> |
25 <xsl:param name="podporaZaostalýchProhlížečů" select="false()" as="xs:boolean"/> |
26 <xsl:param name="podporaZaostalýchProhlížečů" select="false()" as="xs:boolean"/> |
26 |
27 |
138 <xsl:variable name="souborDiagramu" select="j:vytvořDiagram(text(), @orientace = 'vodorovně')"/> |
139 <xsl:variable name="souborDiagramu" select="j:vytvořDiagram(text(), @orientace = 'vodorovně')"/> |
139 <xsl:choose> |
140 <xsl:choose> |
140 <xsl:when test="$souborDiagramu"> |
141 <xsl:when test="$souborDiagramu"> |
141 <div class="diagram"> |
142 <div class="diagram"> |
142 <a href="{$souborDiagramu}.svg"> |
143 <a href="{$souborDiagramu}.svg"> |
143 <img src="{$souborDiagramu}.svg" alt="Diagram {$souborDiagramu}"/> |
144 <img |
|
145 src="{$souborDiagramu}.svg" |
|
146 alt="Diagram {$souborDiagramu} | pokud nevidíte obrázek, váš prohlížeč stojí za starou bačkoru" |
|
147 title="{@nadpis} (klikněte pro zobrazení samotného diagramu)"/> |
144 </a> |
148 </a> |
145 <!-- TODO: SVG+PNG |
149 <!-- TODO: SVG+PNG |
146 <object data="{$souborDiagramu}.svg" type="image/svg+xml"> |
150 <xsl:variable name="svgDiagramu" select="document(concat($výstup, $souborDiagramu, '.svg'))/svg:svg"/> |
147 <img src="{$souborDiagramu}.png" alt="Diagram {$souborDiagramu}"/> |
151 <object |
|
152 data="{$souborDiagramu}.svg" |
|
153 type="image/svg+xml" |
|
154 style="width: {$svgDiagramu/@width}; height: {$svgDiagramu/@height}"> |
|
155 <img src="{$souborDiagramu}.png" alt="Diagram {$souborDiagramu}"/> |
148 </object> |
156 </object> |
149 --> |
157 --> |
150 <xsl:if test="@nadpis"> |
158 <xsl:if test="@nadpis"> |
151 <p class="nadpis"><xsl:value-of select="@nadpis"/></p> |
159 <p class="nadpis"><xsl:value-of select="@nadpis"/></p> |
152 </xsl:if> |
160 </xsl:if> |
153 </div> |
161 </div> |
154 </xsl:when> |
162 </xsl:when> |