xsl-list
[Top] [All Lists]

Re: [xsl] XTRE1160: The fragment identifier {62;n} is not a valid NCName

2008-11-19 16:49:37
Andrew Welch schrieb am 19.11.2008 um 18:32:44 (+0000):
The problem is, I suspect, that some feeds contain markup that has
been processed by some well-meaning person's method that takes a
string converts all ampersands to amp regardless of where they occur,
so correct serialised markup gets butchered [...]

That's the well-meaning DPH at work ...

#!/usr/bin/perl
open XML, shift or die $!;
while ( <XML> ) {
  s/&/&amp;/g;
  print;
}

Totgesagte leben länger ...

Michael Ludwig

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--