problem with javascript in XSLT
843834Feb 28 2003 — edited Mar 4 2003I have a problem with the character "<"..The xsl produces an error if this simbol isn�t putted like an entity.."<"..Good this solves the error but when the HTML is generated the character don�t change..
Example..
The code in XSL is
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsl:template match="/">
<html>
<head/>
<body>
<xsl:apply-templates/>
</body>
<SCRIPT LANGUAGE="JavaScript">
function onprobe()
{
<!-- if (i<j)-->NO correct-->
if (i<j) <!--CORRECT IN XSL-->
}
<!---Until now NO PROBLEMS----->
After that the transformation has been realized the code HTML in sentences javascript is
<SCRIPT LANGUAGE="JavaScript">
function onprobe()
{
if (i<j)//--THIS IS VERY BAD I need (if i<j)
THE SIMBOL COULDN�T BE CHANGED...CAN YOU GIVE ME A HAND??
THANK VERY MUCH...
ARCANOX