Skip to content

Commit edbd511

Browse files
committed
[feature] RPC output-doctype serialization parameter should default to conf.xml setting
1 parent 4baa03e commit edbd511

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

exist-core/src/main/java/org/exist/xmlrpc/RpcConnection.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,11 @@ private String getDocumentAsString(final XmldbURI docUri, final Map<String, Obje
663663
}
664664

665665
private void serialize(final DBBroker broker, final Properties properties, final ConsumerE<Serializer, SAXException> toSaxFunction, final Writer writer) throws SAXException, IOException {
666+
if (!properties.containsKey(EXistOutputKeys.OUTPUT_DOCTYPE)) {
667+
final String outputDocType = broker.getConfiguration().getProperty(Serializer.PROPERTY_OUTPUT_DOCTYPE, "no");
668+
properties.setProperty(EXistOutputKeys.OUTPUT_DOCTYPE, outputDocType);
669+
}
670+
666671
final Serializer serializer = broker.borrowSerializer();
667672

668673
SAXSerializer saxSerializer = null;

0 commit comments

Comments
 (0)