XSL namespace - feature conflict

wxdqz

New Member
Hi,I am new to XSL. I am having a coding conflict.In my XSL file I have these set of statements (at a valid locations):Statement set 1:<xsl:attribute name="ONCLICK">document.location.href="<xsl:value-of select='loc'/>";</xsl:attribute>Statement set 2:<xsl:param name="sourcePage">home-urls.html</xsl:param><xsl:value-of select="$sourcePage"/>To get IE5.5/MSXML3.0 interpret both the statement sets correctly looks impossible.If I have:<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">the set 1 works and set2 gives the error:"Keyword xsl:param many not be used in the namespace <!-- m --><a class="postlink" href="http://www.w3.org/TR/WD-xsl">http://www.w3.org/TR/WD-xsl</a><!-- m -->"On the other hand, if I have:<xsl:stylesheet xmlns:xsl2="http://www.w3.org/1999/XSL/Transform" version="1.0">the set 2 works, but the set 1 gives the error:"Unterminated string constant"How do I get both xsl:parm and the statement document.location.href="<xsl:value-ofselect='loc'/>"; in the same XSL document?I am clue less, any pointers will help.Thanks,Aaron
 
Back
Top