- From: Paul Tyson <phtyson@sbcglobal.net>
- Date: Mon, 25 Aug 2014 20:45:29 -0500
- To: XProc Dev <xproc-dev@w3.org>, Wendell Piez <wapiez@wendellpiez.com>
On Mon, 2014-08-25 at 13:13 -0400, Wendell Piez wrote:
> Paul,
>
> On Sun, Aug 24, 2014 at 3:32 PM, Paul Tyson <phtyson@sbcglobal.net> wrote:
> >> The XProc itself never sees anything but XML - the front end of its
> >> input stream is given as a literal in the XProc:
> >>
> >> <p:input port="source">
> >> <p:inline><document><!-- dummy document</document</p:inline>
> >> </p:input>
> >> <p:with-param name="file" select="$fileOption"/>
> >>
> >
> > I find it works with well-formed XML in p:inline.
>
> Arg, of course mine is well-formed too. It's still working inside
> oXygen but not when invoking Calabash from the cl.
Yes, I figured as much. But here is whole pipeline I tested, and it
produces the expected results (copy of fileOption document) using
calabash 1.0.18-95. I'd be curious how yours is rigged to work in oXygen
but not at command line.
<?xml version="1.0"?>
<p:declare-step
version="1.0"
xmlns:p="http://www.w3.org/ns/xproc">
<p:output port="result"/>
<p:option name="fileOption"/>
<p:xslt>
<p:input port="source">
<p:inline>
<document><!-- nothing --></document>
</p:inline>
</p:input>
<p:with-param name="fileOption" select="$fileOption"/>
<p:input port="stylesheet">
<p:inline>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0">
<xsl:param name="fileOption"/>
<xsl:template match="/">
<xsl:copy-of select="document($fileOption)"/>
</xsl:template>
</xsl:stylesheet>
</p:inline>
</p:input>
</p:xslt>
</p:declare-step>
Regards,
--Paul
Received on Tuesday, 26 August 2014 01:47:25 UTC