Hi, Mike. Mike Strauch <[EMAIL PROTECTED]> wrote on 2008-04-16 03:43:23 PM: > I've recently upgraded Xalan from 2.6 to 2.7.1 and have run into the > following issues: > > I'm using a TransformerIdentityImpl to transform the html below and the > result includes a lot of information that I believe is coming from the > dtd associated with the doctype, and I'm not sure why it is being > included. This alone is not my only concern. When I attempt to > validate the result as xml I receive the following error: > > "White space is required after "<!ENTITY" in the entity declaration."
My understanding is that the description of the identity Transformer that's created by calling the zero-argument newTransformer() method is intentionally vague in order to allow an implementation to preserve more of the source document than would be possible with an XSLT identity stylesheet. In particular, Xalan-J attempts to preserve as much information about the DTD as it can. There are no specific output settings to suppress that information. To suppress the DTD you would either have to create an identity stylesheet and use that for the transformation or filter out the the DTD somewhere? Are you using a SAXSource? It looks like a bug that there is a space missing between the % and the name of the entity in the entity declaration. Could I ask you to open a bug report in Jira? Thanks, Henry ------------------------------------------------------------------ Henry Zongaro XML Transformation & Query Development IBM Toronto Lab T/L 313-6044; Phone +1 905 413-6044 mailto:[EMAIL PROTECTED]
