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"
	<p:option name="dir"/>
	<p:output port="result" sequence="true"/>
	<p:serialization port="result" indent="true" omit-xml-declaration="false"/>
		<p:with-option name="path" select="concat($dir, '/')">
	<p:make-absolute-uris match="*/@name">
		<p:with-option name="base-uri" select="concat($dir, '/')"/>
<!-- 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:with-option name="path" select="$dirpath"/>
		<p:make-absolute-uris match="c:directory/*/@name">
			<p:with-option name="base-uri" select="$dirpath"/>
		<p:make-absolute-uris match="/c:directory/@name">
			<p:with-option name="base-uri"
select="substring-before(concat($dirpath, 'iii'), concat(@name,

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?

Received on Wednesday, 9 September 2009 12:43:37 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:05 UTC