Skip to content

Commit 8a6653e

Browse files
authored
Merge pull request #4582 from evolvedbinary/rm-exit-serialization
remove exist-serialize option
2 parents f006450 + 473072e commit 8a6653e

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

exist-core/src/main/java/org/exist/storage/serializers/Serializer.java

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -474,25 +474,9 @@ public void serialize(DocumentImpl doc, Writer writer, boolean prepareStylesheet
474474
throw new SAXException(e.getMessage(), e);
475475
}
476476
}
477-
if (templates != null)
478-
{applyXSLHandler(writer);}
479-
else {
480-
//looking for serializer properties in <?exist-serialize?>
481-
final NodeList children = doc.getChildNodes();
482-
for (int i = 0; i < children.getLength(); i++) {
483-
final StoredNode node = (StoredNode) children.item(i);
484-
if (node.getNodeType() == Node.PROCESSING_INSTRUCTION_NODE
485-
&& "exist-serialize".equals(node.getNodeName())) {
486-
487-
final String params[] = ((ProcessingInstructionImpl)node).getData().split(" ");
488-
for(final String param : params) {
489-
final String opt[] = Option.parseKeyValuePair(param);
490-
if (opt != null)
491-
{outputProperties.setProperty(opt[0], opt[1]);}
492-
}
493-
}
494-
}
495-
477+
if (templates != null) {
478+
applyXSLHandler(writer);
479+
} else {
496480
setPrettyPrinter(writer, "no".equals(outputProperties.getProperty(OutputKeys.OMIT_XML_DECLARATION, "yes")),
497481
null, true); //setPrettyPrinter(writer, false);
498482
}

0 commit comments

Comments
 (0)