Skip to content

Commit 1cb8210

Browse files
authored
Merge pull request #829 from eXist-db/adamretter-patch-3
Add output-doctype exist serialization option
2 parents a7ca1c6 + df2a98a commit 1cb8210

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/main/xar-resources/data/xquery/xquery.xml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,13 @@
607607
</listitem>
608608
</varlistentry>
609609
<varlistentry>
610-
<term> <literal>expand-xincludes : ( boolean )</literal> </term>
610+
<term> <literal>output-doctype : ( "yes" | "no" )</literal> </term>
611+
<listitem>
612+
<para>Serializes the document's Document Type Declaration if one is present.</para>
613+
</listitem>
614+
</varlistentry>
615+
<varlistentry>
616+
<term> <literal>expand-xincludes : ( "yes" | "no" )</literal> </term>
611617
<listitem>
612618
<para>Must the serializer expand XInclude elements?</para>
613619
</listitem>
@@ -624,7 +630,7 @@
624630
</listitem>
625631
</varlistentry>
626632
<varlistentry>
627-
<term> <literal>process-xsl-pi : ( boolean )</literal> </term>
633+
<term> <literal>process-xsl-pi : ( "yes" | "no" )</literal> </term>
628634
<listitem>
629635
<para>If a document is serialized and it has an XSL processing instruction,
630636
eXist-db can try to load the referenced stylesheet and apply it to the
@@ -641,14 +647,14 @@
641647
</listitem>
642648
</varlistentry>
643649
<varlistentry>
644-
<term> <literal>json-ignore-whitespace-text-nodes : ( boolean )</literal> </term>
650+
<term> <literal>json-ignore-whitespace-text-nodes : ( "yes" | "no" )</literal> </term>
645651
<listitem>
646652
<para>To discard white-space text nodes when serializing XML/XDM to
647653
JSON.</para>
648654
</listitem>
649655
</varlistentry>
650656
<varlistentry>
651-
<term> <literal>insert-final-newline : ( boolean )</literal> </term>
657+
<term> <literal>insert-final-newline : ( "yes" | "no" )</literal> </term>
652658
<listitem>
653659
<para>Add a final newline at the end of an XML or JSON document. This is
654660
especially useful when serializing to a git repository.</para>

0 commit comments

Comments
 (0)