Hi All,
I m created style sheet in that i am executing SVg code to draw rectangle and output some code. But the problem is when it is generating XML for the Output in Oxygen editor its adding xmlns="" attribute in all the svg tag.
below is the code for XSLT and output XML
XSLT :
Code:
<?xml version="1.0" encoding="utf-8"?>
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >
<xsl:template match="/">
<xsl:call-template name="go_to_next_state">
<xsl:with-param name="tape" select="$tape"/>
</xsl:call-template>
<xsl:template name="go_to_next_state">
<xsl:param name="step_number"/> <!-- Increment for each state transition.-->
<xsl:param name="tape"/>
<rect x="20" y="20" width="30" height="30"
style="fill:blue;stroke:pink;stroke-width:5;
fill-opacity:0.1;stroke-opacity:0.9"/>
<text x="30" y="20" style="font-family:arial;text-anchor:middle;baseline-shift:-15;">
<xsl:value-of select="$tape"/>
</text>
</xsl:template>
Output XML
<?xml version="1.0" encoding="utf-8"?><svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><rect xmlns="" x="20" y="20" width="30" height="30" style="fill:blue;stroke:pink;stroke-width:5; fill-opacity:0.1;stroke-opacity:0.9"/><text xmlns="" x="30" y="20" style="font-family:arial;text-anchor:middle;baseline-shift:-15;">123</text>
</svg>
In the above output xml its adding xmlns="" in every svg tag.
Can you please tell me how to avoid that and why its coming.
Thanks
Hari