xsl:call-template and xsl-script not working

admin

Administrator
Staff member
I can't find a namespace that supports both.Using the xsl shown below, call-template works, but scripts don't (I don'texpect them to in this case).Changing the namespace to <!-- m --><a class="postlink" href="http://www.w3.org/TR/WD-xsl">http://www.w3.org/TR/WD-xsl</a><!-- m --> gives me script supportbut call-template no longer works.Is there anything I can use to support both?Please cc me at <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->.-----------------<?xml-stylesheet type="text/xsl" href=http://forums.devx.com/archive/index.php/"test.xsl"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/"><html><body><xsl:call-template name="test"></xsl:call-template><xsl:eval>Add(2,2)</xsl:eval></body></html></xsl:template><xsl:template name="test" match="*">2+2=</xsl:template><xsl:script><![CDATA[function Add(v1,v2){var res=0;res=v1+v2;return res;}]]></xsl:script></xsl:stylesheet>
 
Back
Top