30 Aug
2015
30 Aug
'15
10:11 a.m.
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.