Hellos. I am attempting to use the xmltool indent option to prettify DocBook 5.1 files. As it stands, the following command line and response produce undesired artifacts in the output:
[dos prompt]> xmltool indent -indent 2 -maxlinelength 78 -v -o ./manual/4-wire-bridging-submodule.xml ./manual/4-wire-bridging-submodule.xml Loading document ".\manual\4-wire-bridging-submodule.xml"... WARNING: Cannot determine which schema to use for validating ".\manual\4-wire-bridging-submodule.xml". Saving document ".\manual\4-wire-bridging-submodule.xml" to ".\manual\4-wire-bridging-submodule.xml"... Given the following excerpted example input: <para>The Four-Wire (4W) Bridging Voice Frequency (VF) Submodule, shown in[CR][LF] <xref linkend="fig-4wbridge-submodule-leds"/>, provides the capability to[CR][LF] bridge two four-wire electric circuits. Connections to the circuit are[CR][LF] made using a standard RJ45 connector.</para>[CR][LF] [CR][LF] <figure xml:id="fig-4wbridge-submodule-leds">[CR][LF] <title>4W Bridging Submodule (LEDs Indicated)</title>[CR][LF] The resulting output from xmltool is: <para>The Four-Wire (4W) Bridging Voice Frequency (VF) Submodule, shown in[LF] <xref linkend="fig-4wbridge-submodule-leds"/>, provides the capability to[LF] bridge two four-wire electric circuits. Connections to the circuit are[LF] made using a standard RJ45 connector.</para>[LF] [LF] [LF] [LF] [LF] [LF] <figure xml:id="fig-4wbridge-submodule-leds">[LF] [LF] [LF] [LF] <title>4W Bridging Submodule (LEDs Indicated)</title>[LF] Carriage returns [CR] and line feeds [LF] are indicated above for clarity. The output conversion to UNIX line endings is fine, but the insertion of extra lines between elements is not desired. The documentation for xmltool does not appear to provide any option for regulating line insertion between elements. Is there a way to turn this "feature" off, or what am I doing wrong? Thank you!
-- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support