- From: Betty Harvey <harvey@eccnet.com>
- Date: Thu, 2 Dec 2010 08:13:39 -0500 (EST)
- To: "Hans-Juergen Rennau" <rennau@bits-ac.com>
- Cc: "XProc Dev" <xproc-dev@w3.org>
Hi Hans-Juergen: I had the same problem. If you let XProc handle writing(p:write) the XML file instead of the XSLT then it worked. I have to admit it is a little simpler to use <xsl:result-document>. For complex chunking of documents I suspect using XProc for writing the chunking mechanisms could be painful. Betty > 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> > > > /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ Betty Harvey | Phone: 410-787-9200 FAX: 9830 Electronic Commerce Connection, Inc. | harvey@eccnet.com | Washington,DC XML Users Grp URL: http://www.eccnet.com | http://www.eccnet.com/xmlug /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/ Member of XML Guild (www.xmlguild.org)
Received on Thursday, 2 December 2010 12:17:21 UTC