xsl-list
[Top] [All Lists]

RE: "<" Gets Converted to "&lt;"

2002-11-11 02:29:15
Hi Michael,
Thanks a lot its working now..

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
------------------------------------


-----Original Message-----
From: Michael Kay [mailto:michael(_dot_)h(_dot_)kay(_at_)ntlworld(_dot_)com]
Sent: Monday, November 11, 2002 2:49 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] "<" Gets Converted to "&lt;"


Because you have no xsl:output declaration, and because your first
output element is <link> rather than <html>, the system is using the XML
output method rather than the HTML output method. Start by moving the
<link> element to the proper place.

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
Balajee Chandrasekaran
Sent: 11 November 2002 06:56
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] "<" Gets Converted to "&lt;"


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



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



<Prev in Thread] Current Thread [Next in Thread>