xsl-list
[Top] [All Lists]

RE: Special characters in xsl

2003-11-24 15:42:34
You can't write 

        <VALUE>-.&'()_!?*#%":+<>=?!></\@,~{}$[]^;</VALUE> 

In xml unless you encode certain chars:

Replace ' by &apos;
Replace & by &amp;
Replace " by &quot;
Replace < by &lt;


-----Original Message-----
From: Julian Reschke [mailto:julian(_dot_)reschke(_at_)gmx(_dot_)de] 
Sent: Monday, November 24, 2003 2:28 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Special characters in xsl


Archana Rao wrote:

When i try to display the line below i get the
following error.

<td valign="top" class="text" align="left"
bgcolor="#ffffff">
        <xsl:value-of select="VALUE" />
</td>

ERROR,
A name was started with an invalid character. Error
processing resource, 
<VALUE>-.&'()_!?*#%":+<>=?!></\@,~{}$[]^;</VALUE> 

How should i deal with this.

What do you mean by "when I try to display"? It displays fine in my mail 
reader, but somehow I feel that you're trying to do something else :-)

Regards,

Julian

-- 
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760


 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>