> On 26 Oct 2025, at 10:08, Rick McGuire <[email protected]> wrote:
> 
> If the lack of a cross platform solution to this bothers anybody, then they 
> are invited to put the time in to fix that.

For testing, I added support for xsltproc.

Current:
if (WIN32)
# find a xalan executable, but only on windows for now.
    FIND_PROGRAM(XALAN_EXECUTABLE xalan
       DOC "xalan command line xslt converter")
endif()

Tested:
FIND_PROGRAM(XSLT_PROCESSOR NAMES xalan xsltproc)
message(STATUS "XSLT_PROCESSOR is ${XSLT_PROCESSOR}")

plus other changes that I won't detail, because of the different order of the 
arguments.


xalan-c is available on platforms other than Windows but I haven't tested it 
because it's not available with Brew. 
It's available with MacPorts, which I don't use.

The output of xsltproc for .h files is identical to the output of xalan (svn 
does not report any difference).
But the output for .xml files is different (same tags, different layout).
I did not test if that would impact the documentation (should not).

Because of this difference, I don't think it's worth continuing.

(Tests on macOS)

xalan-c:
<section id="errorlist">
<title>Error List</title>
<section id="ERR3">
<title>Error 3 - Failure during initialization.</title>
<para>
<emphasis role="bold">Explanation:</emphasis>
</para>
<para>The REXX program could not be read from the disk.</para>
<para>The associated subcodes are: </para>
<variablelist>
<varlistentry>
<term>001</term>
<listitem>
<para>Failure during initialization: File "<emphasis 
role="italic">filename</emphasis>" is unreadable.</para>
</listitem>
</varlistentry>
...


xsltproc:
<section id="errorlist"><title>Error List</title>
<section id="ERR3"><title>Error 3 - Failure during initialization.</title>
<para><emphasis role="bold">Explanation:</emphasis></para>
<para>The REXX program could not be read from the disk.</para>
<para>The associated subcodes are: </para>
<variablelist>
<varlistentry><term>001</term><listitem><para>Failure during initialization: 
File "<emphasis role="italic">filename</emphasis>" is 
unreadable.</para></listitem></varlistentry>
...


_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to