Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.7.1
-
None
-
None
Description
Using the TransformerIdentityImpl to transform something like:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>title</title>
</head>
<body>
<p>Some text here is ok</p>
</body>
</html>
Results in output that contains invalid entity declarations.
Example:
<!ENTITY %HTMLspecial PUBLIC "-//W3C//ENTITIES Special for XHTML//EN" >
I believe there is a space missing between the '%' and the 'HTML' and this is causing xml validation to fail.