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

"--" question

Subject: "--" question
From: Hélder Sousa <Helder.Sousa@xxxxxx>
Date: Fri, 4 Apr 2003 11:11:17 +0100
 "--" question
Hello :)

I have a problem that I can't understand why.
Somewhere in my xml I have the following code:

<script><![CDATA[ if( stMarcador == "--START-VALUE--" )   {  /*do something*/   }]]></script>

When I parser the xml through the next xsl:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" encoding="ISO-8859-1"/>
	<xsl:template match="/">
		<html>
			<xsl:call-template name="head"/>
		</html>
	</xsl:template>
	
	<xsl:template name="head" match="*">
		<head>
			<link rel="stylesheet" type="text/css" href="xsl/style.css"/>			
			<script src="script.js" type="text/javascript"/>
			<script language="JavaScript">
				<xsl:comment>
					<xsl:for-each select=".//script">
						<xsl:value-of select="." disable-output-escaping="yes"/>
					</xsl:for-each>
				</xsl:comment>
			</script>
		</head>
	</xsl:template>
</xsl:stylesheet>

the result of:
	if( stMarcador == "--START-VALUE--" )
Is
	if( stMarcador == "- -START-VALUE- -" )

Why the xsl puts the space between "--"?
Tks :)



Hélder Sousa
Departamento de  Projectos e-Business 
I2S - Informática Sistemas e Serviços 
<<mailto:helder.sousa@xxxxxx>> - <<http://www.i2s.pt/>>
Tel.: +351 22 834 04 00; Fax: +351 22 834 07 95 
Portugal 

 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.