[
https://issues.apache.org/jira/browse/XALANJ-2807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Honnen updated XALANJ-2807:
----------------------------------
Description:
This is a bug report against the XSLT 3 development branch of Xalan where
recently support for xsl:result documents was added and later also support for
the XPath 3.1 function fn:transform.
However, fn:transform so far seems only to return the principal result document
in its map result, it should also include secondary result documents in that
map.
I have attached the XML and XSLT Sample for a test case, the output with Xalan
shows only the principal result with Uri output but there should be further
result documents chapter-1.xml to chapter-6.xml:
{code:xml}
<root>
<result uri="output">
<book title="Example book">
<chapter id="ch1">
<section>..</section>
<section>
<para>..</para>
<para><!-- paragraph in section --></para>
</section>
</chapter>
<chapter id="ch2">
<section>..</section>
<section>
<para>..</para>
<para><!-- paragraph in section --></para>
</section>
</chapter>
<chapter id="ch3">
<section>..</section>
<section>
<para>..</para>
<para><!-- paragraph in section --></para>
</section>
</chapter>
<chapter id="ch4">
<section>..</section>
<section>
<para>..</para>
<para><!-- paragraph in section --></para>
</section>
</chapter>
<chapter id="ch5">
<section>..</section>
<section>
<para>..</para>
<para><!-- paragraph in section --></para>
</section>
</chapter>
<chapter id="ch6">
<section>..</section>
<section>
<para>..</para>
<para><!-- paragraph in section --></para>
</section>
</chapter>
</book>
</result>
<result uri="chapter-1.xml">
<chapter id="ch1">
<section>..</section>
<section>
<para>..</para>
<para><!-- paragraph in section --></para>
</section>
</chapter>
</result>
<result uri="chapter-2.xml">
<chapter id="ch2">
<section>..</section>
<section>
<para>..</para>
<para><!-- paragraph in section --></para>
</section>
</chapter>
</result>
<result uri="chapter-3.xml">
<chapter id="ch3">
<section>..</section>
<section>
<para>..</para>
<para><!-- paragraph in section --></para>
</section>
</chapter>
</result>
<result uri="chapter-4.xml">
<chapter id="ch4">
<section>..</section>
<section>
<para>..</para>
<para><!-- paragraph in section --></para>
</section>
</chapter>
</result>
<result uri="chapter-5.xml">
<chapter id="ch5">
<section>..</section>
<section>
<para>..</para>
<para><!-- paragraph in section --></para>
</section>
</chapter>
</result>
<result uri="chapter-6.xml">
<chapter id="ch6">
<section>..</section>
<section>
<para>..</para>
<para><!-- paragraph in section --></para>
</section>
</chapter>
</result>
</root>
{code}
was:
This is a bug report against the XSLT 3 development branch of Xalan where
recently support for xsl:result documents was added and later also support for
the XPath 3.1 function fn:transform.
However, fn:transform so far seems only to return the principal result document
in its map result, it should also include secondary result documents in that
map.
> fn:transform should return secondary result documents
> ------------------------------------------------------
>
> Key: XALANJ-2807
> URL: https://issues.apache.org/jira/browse/XALANJ-2807
> Project: XalanJ2
> Issue Type: Bug
> Security Level: No security risk; visible to anyone(Ordinary problems in
> Xalan projects. Anybody can view the issue.)
> Components: Xalan, XPath-function
> Affects Versions: The Latest Development Code
> Environment: Java 8, Windows 11
> Reporter: Martin Honnen
> Priority: Major
> Attachments: fn-transform-test-multiple-results-test1.xsl,
> transform-test2-input.xml
>
>
> This is a bug report against the XSLT 3 development branch of Xalan where
> recently support for xsl:result documents was added and later also support
> for the XPath 3.1 function fn:transform.
> However, fn:transform so far seems only to return the principal result
> document in its map result, it should also include secondary result documents
> in that map.
> I have attached the XML and XSLT Sample for a test case, the output with
> Xalan shows only the principal result with Uri output but there should be
> further result documents chapter-1.xml to chapter-6.xml:
> {code:xml}
> <root>
> <result uri="output">
> <book title="Example book">
> <chapter id="ch1">
> <section>..</section>
> <section>
> <para>..</para>
> <para><!-- paragraph in section --></para>
> </section>
> </chapter>
> <chapter id="ch2">
> <section>..</section>
> <section>
> <para>..</para>
> <para><!-- paragraph in section --></para>
> </section>
> </chapter>
> <chapter id="ch3">
> <section>..</section>
> <section>
> <para>..</para>
> <para><!-- paragraph in section --></para>
> </section>
> </chapter>
> <chapter id="ch4">
> <section>..</section>
> <section>
> <para>..</para>
> <para><!-- paragraph in section --></para>
> </section>
> </chapter>
> <chapter id="ch5">
> <section>..</section>
> <section>
> <para>..</para>
> <para><!-- paragraph in section --></para>
> </section>
> </chapter>
> <chapter id="ch6">
> <section>..</section>
> <section>
> <para>..</para>
> <para><!-- paragraph in section --></para>
> </section>
> </chapter>
> </book>
> </result>
> <result uri="chapter-1.xml">
> <chapter id="ch1">
> <section>..</section>
> <section>
> <para>..</para>
> <para><!-- paragraph in section --></para>
> </section>
> </chapter>
> </result>
> <result uri="chapter-2.xml">
> <chapter id="ch2">
> <section>..</section>
> <section>
> <para>..</para>
> <para><!-- paragraph in section --></para>
> </section>
> </chapter>
> </result>
> <result uri="chapter-3.xml">
> <chapter id="ch3">
> <section>..</section>
> <section>
> <para>..</para>
> <para><!-- paragraph in section --></para>
> </section>
> </chapter>
> </result>
> <result uri="chapter-4.xml">
> <chapter id="ch4">
> <section>..</section>
> <section>
> <para>..</para>
> <para><!-- paragraph in section --></para>
> </section>
> </chapter>
> </result>
> <result uri="chapter-5.xml">
> <chapter id="ch5">
> <section>..</section>
> <section>
> <para>..</para>
> <para><!-- paragraph in section --></para>
> </section>
> </chapter>
> </result>
> <result uri="chapter-6.xml">
> <chapter id="ch6">
> <section>..</section>
> <section>
> <para>..</para>
> <para><!-- paragraph in section --></para>
> </section>
> </chapter>
> </result>
> </root>
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]