xsl-list
[Top] [All Lists]

Re: embeding special characters into html tags (&)

2003-03-06 03:03:19
You need to replace & with &

cheers,
Babu Sathish

----- Original Message -----
From: "Vilius Jagminas" <vilius(_at_)sbc(_dot_)su(_dot_)se>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
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(_dot_)cgi?acc={(_at_)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



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