30 Aug
2015
30 Aug
'15
7:14 p.m.
The processor is xmllint , but I don't remember the details of the error message. On 30/08/15 18:11, Syd Bauman wrote:
Interesting ... what is the error, and from what processor? My reading of the XML spec (in particular, production 50) says it should be legal except in mixed content (production 51), where the parens would not be allowed no matter what the PE expands to.
perl -pe 's,%[A-Za-z][A-Za-z0-9.-]+;,($&),g;' < in.dtd > out.dtd
Hitting all of them (however) is definitely not a good idea: it generates a different error in cases where the pe expands to a single gi.