W3C home > Mailing lists > Public > xproc-dev@w3.org > September 2009

Result wanted for source and output

From: Manfred Staudinger <manfred.staudinger@gmail.com>
Date: Wed, 9 Sep 2009 14:42:55 +0200
Message-ID: <a946be3a0909090542k3c26d8f3pd2c597f74c75f607@mail.gmail.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 September 2009 12:43:37 GMT