W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > May 2008

effect of p:compare

From: Innovimax SARL <innovimax@gmail.com>
Date: Sat, 3 May 2008 12:11:13 +0200
Message-ID: <546c6c1c0805030311q5452188cnea8161b7eb9de3ac@mail.gmail.com>
To: "XProc WG" <public-xml-processing-model-wg@w3.org>
p:compare is one of those step which has no primary output port

In 2.5 Environment,

[[
If there is a preceding sibling step element:

   -

   If that preceding sibling has a *primary output
port<http://www.w3.org/XML/XProc/docs/langspec.html#dt-primary-output-port>
   *, then that output port becomes the *default readable
port<http://www.w3.org/XML/XProc/docs/langspec.html#dt-default-readable-port>
   *.
   -

   Otherwise, the *default readable
port<http://www.w3.org/XML/XProc/docs/langspec.html#dt-default-readable-port>
   * is undefined.

]]

does it mean that

<p:identity/>
<p:compare/>
<p:identity/>

1) will throw an error on the second p:identity, because the default
readable port is undefined
2) will use the last defined "default readable port", which is the result of
the first identity

Mohamed
-- 
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 9 52 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 
Received on Saturday, 3 May 2008 10:11:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 3 May 2008 10:11:51 GMT