- From: <vojtech.toman@emc.com>
- Date: Thu, 2 Dec 2010 07:10:07 -0500
- To: <xproc-dev@w3.org>
If you use xsl:result-document, the document(s) generated that way will appear on the "secondary" output port of the p:xslt step, not on the "result" output port (which is used for the primary output of the stylesheet). To access the "secondary" documents, you have to do something like this:
<p:pipeline version="1.0" xmlns:p="http://www.w3.org/ns/xproc"
xmlns:c="http://www.w3.org/ns/xproc-step">
<p:xslt name="tryResultDocument" version="2.0">
...
</p:xslt>
<p:identity>
<p:input port="source">
<p:pipe step="tryResultDocument" port="secondary"/>
</p:input>
</p:identity>
<p:pipeline>
Regards,
Vojtech
--
Vojtech Toman
Consultant Software Engineer
EMC | Information Intelligence Group
vojtech.toman@emc.com
http://developer.emc.com/xmltech
> -----Original Message-----
> From: xproc-dev-request@w3.org [mailto:xproc-dev-request@w3.org] On Behalf Of
> Hans-Juergen Rennau
> Sent: Thursday, December 02, 2010 9:25 AM
> To: XProc Dev
> Subject: calabash / xsl:result-document
>
> Hello People,
>
> using calabash-0.9.24, I have problems with using xsl:result-document in
> <p:xslt>. I do not manage to get any output - the step behaves as if the
> xsl:result-document did not exist.
>
> I experimented with using/not using the option 'output-base-uri', as
> well as relative and absolute URIs - all without avail.
>
> Is it a bug, or is there a reason I miss? Below a simple test example.
>
> Thanks,
> -- Hans-Juergen
>
> <p:pipeline version="1.0" xmlns:p="http://www.w3.org/ns/xproc"
> xmlns:c="http://www.w3.org/ns/xproc-step">
>
> <p:xslt name="tryResultDocument" version="2.0">
> <!--
> output-base-uri="file:/usr/db/dyn/amis/bits/OnlAen/correction-201111/"> -->
>
> <p:input port="source"><p:inline><hello/></p:inline></p:input>
>
> <p:input port="stylesheet">
> <p:inline>
>
> <xsl:stylesheet version="2.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:template match="/">
> <xsl:result-document href="zzz.xml">
> <whyyynot>That is my question.</whyyynot>
> </xsl:result-document>
> <xsl:copy-of select="."/>
> </xsl:template>
> </xsl:stylesheet>
>
> </p:inline>
> </p:input>
> </p:xslt>
> </p:pipeline>
>
>
>
Received on Thursday, 2 December 2010 12:12:07 UTC