[xsl] Escape Special Characters

Subject: [xsl] Escape Special Characters
From: Jen Jiang <zhenjiang14221@xxxxxxxxx>
Date: Sun, 24 Oct 2004 16:15:54 -0700 (PDT)
I'm baffled by this use of &amp;. I have to use it
twice for each & sign in the URL to get the variables
passed correctly. Does someone have explanation for
this?


<xsl:element name='img'>
	<xsl:attribute name='src'>
		<xsl:text>./php/chart_age.php?     age1=</xsl:text>
		<xsl:value-of select="AGE1"/>&amp;
		<xsl:text>&amp;age2=</xsl:text>
		<xsl:value-of select="AGE2"/>&amp;
		<xsl:text>&amp;age3=</xsl:text>
		<xsl:value-of select="AGE3"/>&amp;
		<xsl:text>&amp;age4=</xsl:text>
		<xsl:value-of select="AGE4"/>&amp;
		<xsl:text>&amp;age5=</xsl:text>
		<xsl:value-of select="AGE5"/>&amp;
		<xsl:text>&amp;age6=</xsl:text>
		<xsl:value-of select="AGE6"/>&amp;
		<xsl:text>&amp;age7=</xsl:text>
		<xsl:value-of select="AGE7"/>&amp;
		<xsl:text>&amp;age8=</xsl:text>
		<xsl:value-of select="AGE8"/>
	</xsl:attribute>
</xsl:element>

Thanks.



		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

Current Thread