node-value

Setting nodeValue of text node in Javascript when string contains html entities

When I set a value of a text node with node.nodeValue="string with &#xxxx; sort of characters" ampersand gets escaped. Is there an easy way to do this? ...

XSLT: How to pass a node value to a custom xsl:function ?

Hi all, I have a simple function that I want to pass the value of a node to. <xsl:function name="f:getdatetimetype" as="xs:string"> <xsl:param name="code" as="xs:int"/> <xsl:choose> <xsl:when test="$code = 137"> <xsl:text>DocumentMessageDateTime</xsl:text> </xsl:when> <xsl:otherwise> <xsl...