Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

problem with javascript in XSLT

843834Feb 28 2003 — edited Mar 4 2003
I 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















Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 1 2003
Added on Feb 28 2003
4 comments
207 views