This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Converting special characters



> 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, '&quot;')">

However,

> I really need to replace some quotes with "&quot;" so
after the XML parse, " and &quot; 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]