On Friday 01 March 2002 15:48, Alex Speed wrote:
> � for (var i=1; i<split_good_string.length;i++) {
The "<" is special in XML (this is a general XML question, not an XSL
question). It thinks you are making a tag named <split_good_string.length/>
and it can't find the > or / at the ';'.
You can either replace the "<" with "<" (just like you'd replace an "&"
with "&"). Or, as someone else suggested, you can put the whole script
inside a CDATA section like so:
<script><![CDATA[
for (var i=1; i<split_good_string.length;i++) {
...
]]></script>
The CDATA section makes it so that the "<" (and "&" for that matter) are not
interpretted specially, and so you don't have to escape them. The only thing
you can't put inside a CDATA section is the sequence "]]>", which ends the
section.
--
Peter Davis
Bus error -- driver executed.