Project

Profile

Help

Bug #1503 » svg-t5-browser-v2.xsl

Manfred Staudinger, 2012-04-26 23:15

 
<?xml version="1.0" encoding="UTF-8"?>
<xsl:transform version="2.0"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:ixsl="http://saxonica.com/ns/interactiveXSLT"
xmlns:prop="http://saxonica.com/ns/html-property"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xlink="http://www.w3.org/1999/xlink"
extension-element-prefixes="ixsl"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="svg" select="ixsl:page()/html/body/svg" as="element()"/>
<xsl:variable name="g" select="$svg/g/g/g" as="element()+"/>

<xsl:template match="/">
<xsl:message select="boolean($g/g[@id='&lt;Raumtrennung&gt;_2'])"/>
<xsl:message select="boolean($g/use[@xlink:href='#Ohne_Bezeichnung_1'])"/>
<xsl:result-document href="#title" method="ixsl:replace-content">
<xsl:value-of select="$svg/title"/>
</xsl:result-document>
</xsl:template>
</xsl:transform>
(3-3/4)