[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: '<' Gets Converted to '&lt;'

Subject: Re: '<' Gets Converted to '&lt;'
From: "Antonio A. Gallardo Rivera" <agallardo@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 11 Nov 2002 01:23:46 -0600 (CST)
xsl lt
Try this:

<script language="JavaScript">
  function copy_onclick(tblGroups)
  {
    alert('inside');
    for(i=0;i&lt;tblGroups.rows.length;i++)
    {
      alert('Success1');
    }
    }
</script>

also, I recommend you:
1-put yoour java script in a external file.
2-If you can avoid the use of <![CDATA[ ]]>

Regards,

Antonio Gallardo

Balajee Chandrasekaran dijo:
> Hi All,
>
> I have an xsl some thing like this
>
> =====================================================================
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
>
> <xsl:template match="/">
>    <link rel='stylesheet' type='text/css' name='styles'
> href='cssJP.css'/> <html>
>      <head>
>        <title>Groups</title>
>      </head>
>      <script language="JavaScript">
>       <![CDATA[
> 	           function copy_onclick(tblGroups)
>                        {
>                            alert("inside");
> 		   for(i=0;i<tblGroups.rows.length;i++)
> 	               {
> 		 	alert("Success1");
>                            }
>                        }
> 	    ]]>
>    </script>
>    </html>
> </xsl:template>
> </xsl:stylesheet>
> ========================================================================
>
>
> The output is some thing like this
> =====================================================================
>    <link rel='stylesheet' type='text/css' name='styles'
> href='cssJP.css'/> <html>
>      <head>
>        <title>Groups</title>
>      </head>
>      <script language="JavaScript">
> 	           function copy_onclick(tblGroups)
>                        {
>                            alert("inside");
> 		   for(i=0;i&lt;tblGroups.rows.length;i++)
> 	               {
> 		 	alert("Success1");
>                            }
>                        }
>    </script>
>    </html>
> =====================================================================
>
> I have marked the "<" in red. The "<" in XSL gets converted to "&lt;"
> (also marked in red) in the output HTML. This is giving me error in
> Javascript How can I rectify it..??
>
> Thanks in advance.
> regards
> Balajee Chandrasekaran
>
> Software Engineer
> Majesco Software Inc.
> Phone : 91-22-5695 2222 Extn No 7911
> ------------------------------------
> Beleif
> Everything is possible for him who believes.
> Bible
> ------------------------------------
>
>
>
> MASTEK
> Investing in relationships
> In the US, we're called MAJESCO
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not
> that of Mastek Limited, unless specifically indicated to that effect.
> Mastek Limited does not accept any responsibility or liability for it.
> This e-mail and attachments (if any) transmitted with it are
> confidential and/or privileged and solely for the use of the intended
> person or entity to which it is addressed. Any review, re-transmission,
> dissemination or other use of or taking of any action in reliance upon
> this information by persons or entities other than the intended
> recipient is prohibited. This e-mail and its attachments have been
> scanned for the presence of computer viruses. It is the responsibility
> of the recipient to run the virus check on e-mails and attachments
> before opening them. If you have received this e-mail in error, kindly
> delete this e-mail from all computers.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.