Hi Michael,
When using Saxon's identity transformer, with following
output keys:
format.put(OutputKeys.DOCTYPE_PUBLIC,"x");
format.put(OutputKeys.DOCTYPE_SYSTEM,"y");
format.put(OutputKeys.METHOD,"html");
Emitter outputs DOCTYPE twice, because
writeDocType called twice.
First time from:
HTMLEmitter.startDocument
Outputter.open
GeneralOutputter.setOutputDestination
IdentityTransformerHandler.startDocument, 97
and second time from:
HTMLEmitter.startDocument
ContentEmitter.startDocument
IdentityTransformerHandler.startDocument, 104
Not sure how this should be resolved, but I patched
XMLEmitter.java so it has check for second call:
------8<------
boolean docTypeWritten = false;
protected void writeDocType(...) {
if (docTypeWritten) return;
docTypeWritten = true;
------8<------
This bug present in Saxon 6.5.2 too.
Vadim
Nobody/Anonymous
None
v6.5.2
Public
|
Date: 2002-08-28 13:16 Logged In: YES |
|
Date: 2002-07-25 16:25 Logged In: YES |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2003-08-14 14:21 | mhkay |
| resolution_id | None | 2003-08-14 14:21 | mhkay |
| close_date | - | 2003-08-14 14:21 | mhkay |
| artifact_group_id | v7.1 | 2002-07-25 16:25 | mhkay |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use