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

Subject: Re: [xsl] XTRE1160: The fragment identifier {62;n} is not a valid NCName
From: Michael Ludwig <milu71@xxxxxx>
Date: Wed, 19 Nov 2008 22:48:58 +0100
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 ldnger ...

Michael Ludwig

Current Thread