This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Converting special characters
- To: xsl-list at mulberrytech dot com
- Subject: Re: Converting special characters
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Tue, 19 Sep 2000 10:08:08 GMT
- References: <F93oGdKO8FNpyLAPDVX00002693@hotmail.com>
- Reply-To: xsl-list at mulberrytech dot com
> Code:
> <xsl:when test="contains($string, '"')">
XSL stylesheets have to be well formed XML. That wouldn't have got past
the XML parser as the value of the test attribute is
contains($string, '
and then there is ')" as illegal characters in the start tag.
<xsl:when test="contains($string, '"')">
However,
> I really need to replace some quotes with """ so
after the XML parse, " and " are (always, in any XML file) the same
thing, the single character ". So I am not sure what you would mean by
this replacement.
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list