Re: [xsl] embeding special characters into html tags (&)

Subject: Re: [xsl] embeding special characters into html tags (&)
From: "Babu Sathish Ramaraj" <bramaraj@xxxxxxxxxx>
Date: Thu, 6 Mar 2003 15:33:19 +0530
You need to replace & with &amp;

cheers,
Babu Sathish

----- Original Message -----
From: "Vilius Jagminas" <vilius@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, March 06, 2003 3:07 PM
Subject: [xsl] embeding special characters into html tags (&)


> Hello,
>
> I have got the following problem.
>
> <xsl:template match="child">
> ...
>     <a
> href:"http://www.sbc.su.se/~vilius/goservice/go.cgi?acc={@acc}&verbose=1";>
>         <xsl:value-of select="@acc"/>
>     </a>
> ...
> </xsl:template>
>
> I get an error:
> XML Parsing Error: not well-formed
>
> If I take away  "&verbose=1" everything works fine.
> Knowing that & is treated as a special character I tried to replace it
> with &#38, with no success. Could somebody of you experts please help me?
>
> Thank you.
>
> Vilius Jagminas
> Masters student
> www.sbc.su.se
>
>
>
>
>
>  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