- From: Manfred Staudinger <manfred.staudinger@gmail.com>
- Date: Wed, 9 Sep 2009 14:42:55 +0200
- To: xproc-dev <xproc-dev@w3.org>
I have the following pipeline: <?xml version="1.0" encoding="UTF-8"?> <p:declare-step name="myPipeline" xmlns:c="http://www.w3.org/ns/xproc-step" xmlns:p="http://www.w3.org/ns/xproc"> <p:option name="dir"/> <p:output port="result" sequence="true"/> <p:serialization port="result" indent="true" omit-xml-declaration="false"/> <p:directory-list> <p:with-option name="path" select="concat($dir, '/')"> <p:empty/> </p:with-option> </p:directory-list> <p:make-absolute-uris match="*/@name"> <p:with-option name="base-uri" select="concat($dir, '/')"/> </p:make-absolute-uris> <!-- would like to add this to the output _and_ pass it to the directoryloop step --> <p:for-each name="directoryloop"> <p:iteration-source select="/c:directory/c:directory"/> <p:variable name="dirpath" select="concat(c:directory/@name, '/')"/> <p:directory-list> <p:with-option name="path" select="$dirpath"/> </p:directory-list> <p:make-absolute-uris match="c:directory/*/@name"> <p:with-option name="base-uri" select="$dirpath"/> </p:make-absolute-uris> <p:make-absolute-uris match="/c:directory/@name"> <p:with-option name="base-uri" select="substring-before(concat($dirpath, 'iii'), concat(@name, '/iii'))"/> </p:make-absolute-uris> </p:for-each> </p:declare-step> When I run this tthen I get a sequence of documents each containing one c:directory and its immediate content (c:file and c:directory). But I would like to get also the output from the step preceding the "directoryloop" step. How would I do this? Regards, Manfred
Received on Wednesday, 9 September 2009 12:43:37 UTC