RE: [xsl] "<" Gets Converted to "&lt;"

Subject: RE: [xsl] "<" Gets Converted to "&lt;"
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 11 Nov 2002 09:18:49 -0000
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.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Balajee Chandrasekaran
> Sent: 11 November 2002 06:56
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> 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


Current Thread