Skip to content

Commit 473072e

Browse files
committed
rm exist-serialize option
1 parent eb725f9 commit 473072e

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
@@ -469,25 +469,9 @@ public void serialize(DocumentImpl doc, Writer writer, boolean prepareStylesheet
469469
throw new SAXException(e.getMessage(), e);
470470
}
471471
}
472-
if (templates != null)
473-
{applyXSLHandler(writer);}
474-
else {
475-
//looking for serializer properties in <?exist-serialize?>
476-
final NodeList children = doc.getChildNodes();
477-
for (int i = 0; i < children.getLength(); i++) {
478-
final StoredNode node = (StoredNode) children.item(i);
479-
if (node.getNodeType() == Node.PROCESSING_INSTRUCTION_NODE
480-
&& "exist-serialize".equals(node.getNodeName())) {
481-
482-
final String params[] = ((ProcessingInstructionImpl)node).getData().split(" ");
483-
for(final String param : params) {
484-
final String opt[] = Option.parseKeyValuePair(param);
485-
if (opt != null)
486-
{outputProperties.setProperty(opt[0], opt[1]);}
487-
}
488-
}
489-
}
490-
472+
if (templates != null) {
473+
applyXSLHandler(writer);
474+
} else {
491475
setPrettyPrinter(writer, "no".equals(outputProperties.getProperty(OutputKeys.OMIT_XML_DECLARATION, "yes")),
492476
null, true); //setPrettyPrinter(writer, false);
493477
}

0 commit comments

Comments
 (0)