xproc and xinclude with fixup-xml-base
Posted: Sun May 10, 2020 8:38 pm
I'm having trouble disabling the fixup-xml-base option in Xproc.
I have created an xproc transformation scenario in oXygen. In the Inputs, I defined a source port, and this port takes an XML doc which has a bunch of other fragments included with xi:include. The scenario also defines the final output on the result port.
The scenario works as expected with a number of xslt steps. But the first step — which is an <p:xinclude> doesn't seem to do what it should.
The xproc file with only the first step looks like this:
What this should do — unless I am missing something obvious — is take the document from the source (which is defined in the oXygen transformation), include all of its bits and spit it out on the result port, while disabling the xml:base fixup. This, however, doesn't happen. The document is output with a bunch of xml:bases in it.
I have two questions here:
1. Why is this not working as I think it should?
2. Shouldn't the oXygen general setting for the Base Uri fix-up take precedence here anyway? (I have it disabled, but it doesn't seem to have any effect on xproc pipelines.)
Many thanks in advance!
All best,
Toma
I have created an xproc transformation scenario in oXygen. In the Inputs, I defined a source port, and this port takes an XML doc which has a bunch of other fragments included with xi:include. The scenario also defines the final output on the result port.
The scenario works as expected with a number of xslt steps. But the first step — which is an <p:xinclude> doesn't seem to do what it should.
The xproc file with only the first step looks like this:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:c="http://www.w3.org/ns/xproc-step"
version="1.0">
<p:serialization port="result" method="xml" indent="true" omit-xml-declaration="false"/>
<p:input port="source" sequence="true"/>
<p:input port="parameters" kind="parameter"/>
<p:output port="result" sequence="true"/>
<p:xinclude fixup-xml-base="false" name="expand"/>
</p:declare-step>
I have two questions here:
1. Why is this not working as I think it should?
2. Shouldn't the oXygen general setting for the Base Uri fix-up take precedence here anyway? (I have it disabled, but it doesn't seem to have any effect on xproc pipelines.)
Many thanks in advance!
All best,
Toma