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

Can this combined into one step ? msgXS0032

From: Manfred Staudinger <manfred.staudinger@gmail.com>
Date: Thu, 10 Sep 2009 23:50:18 +0200
Message-ID: <a946be3a0909101450p256a9c45medcaa2cda79ea22a@mail.gmail.com>
To: xproc-dev <xproc-dev@w3.org>
I have the following pipeline:

<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"/>
	<p:serialization port="result" indent="true" omit-xml-declaration="false"/>
	<p:identity>
		<p:input port="source">
			<p:inline>
<c:directory><c:directory/></c:directory>
			</p:inline>
		</p:input>
	</p:identity>
	<p:add-attribute match="*/c:directory" attribute-name="name">
		<p:with-option name="attribute-value" select="$dir"/>
	</p:add-attribute>
</p:declare-step>

which works fine.- But when I try to combine it into one step, by
moving the p:input into the p:add-attribute, I get the message XS0032:
It is a static error if no binding is provided and the default
readable port is undefined. Any explanation or pointers what I should
read?

Regards,
Manfred
Received on Thursday, 10 September 2009 21:50:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 10 September 2009 21:51:00 GMT