Dear all,
I am not all that familiar with svg; nevertheless I wish to include a svg element in a xsl stylesheet.
If I run the following code I get my required output:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:transform version="1.0"
xmlns:xsl="
<xsl:template match="/">
<xsl:for-each select="TimeML/MAKEINSTANCE">
<xsl:if test="@tense!='NONE'">
<xsl:variable name='eventid'select="@eventID"/>
<xsl:for-each select="../BODY/bn_episode_trans/section/TEXT/turn/s/EVENT">
<xsl:if test="@eid=$eventid">
<xsl:value-of select="../."/>
</xsl:if>
</xsl:for-each>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:transform>
However, if I add <svg width="600px" height="250px" xmlns=" after the templatematch nothing seems to work anymore.
code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:transform version="1.0"
xmlns:xsl="
<xsl:template match="/">
<svg width="600px" height="250px" xmlns=" <xsl:for-each select="TimeML/MAKEINSTANCE">
<xsl:if test="@tense!='NONE'">
<xsl:variable name='eventid' select="@eventID">
</xsl:variable>
<xsl:for-each select="../BODY/bn_episode_trans/section/TEXT/turn/s/EVENT">
<xsl:if test="@eid=$eventid">
<xsl:value-of select="../."/>
</xsl:if>
</xsl:for-each>
</xsl:if>
</xsl:for-each>
</svg>
</xsl:template>
</xsl:transform>
Does anyone know why, and how it can be solved?
Thanks in advance,
YT, Robert
I am not all that familiar with svg; nevertheless I wish to include a svg element in a xsl stylesheet.
If I run the following code I get my required output:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:transform version="1.0"
xmlns:xsl="
<xsl:template match="/">
<xsl:for-each select="TimeML/MAKEINSTANCE">
<xsl:if test="@tense!='NONE'">
<xsl:variable name='eventid'select="@eventID"/>
<xsl:for-each select="../BODY/bn_episode_trans/section/TEXT/turn/s/EVENT">
<xsl:if test="@eid=$eventid">
<xsl:value-of select="../."/>
</xsl:if>
</xsl:for-each>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:transform>
However, if I add <svg width="600px" height="250px" xmlns=" after the templatematch nothing seems to work anymore.
code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:transform version="1.0"
xmlns:xsl="
<xsl:template match="/">
<svg width="600px" height="250px" xmlns=" <xsl:for-each select="TimeML/MAKEINSTANCE">
<xsl:if test="@tense!='NONE'">
<xsl:variable name='eventid' select="@eventID">
</xsl:variable>
<xsl:for-each select="../BODY/bn_episode_trans/section/TEXT/turn/s/EVENT">
<xsl:if test="@eid=$eventid">
<xsl:value-of select="../."/>
</xsl:if>
</xsl:for-each>
</xsl:if>
</xsl:for-each>
</svg>
</xsl:template>
</xsl:transform>
Does anyone know why, and how it can be solved?
Thanks in advance,
YT, Robert