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

Re: An example of guaranteed proper protection against potential race conditions

From: Innovimax SARL <innovimax@gmail.com>
Date: Wed, 26 Mar 2008 15:17:15 +0100
Message-ID: <546c6c1c0803260717x1eebec5ctc745b8cae2fe413d@mail.gmail.com>
To: "Norman Walsh" <ndw@nwalsh.com>
Cc: public-xml-processing-model-wg@w3.org

On Wed, Mar 26, 2008 at 3:06 PM, Norman Walsh <ndw@nwalsh.com> wrote:
> [Mohamed, you've enabled some sort of HTML support in your email client
> which makes your messages somewhat garbled.]

Argh!!! Sorry about that...

>
> / Innovimax SARL <innovimax@gmail.com> was heard to say:
> | 1. ( ) text/plain (*) multipart/mixed [2. text/html] Interesting side
>
>
>
> | question
> |
> | <p:pipeline type="main">
> |  <p:choose>
> |  <p:when test="[some property of the primary input]">
> |   [expensive series of steps]
> |   <p:store href="file:///home/ht/styleshe
> |
> |   ets/clever.xsl"/>
> | </p:when>
> | <p:otherwise>
> |  <p:identity>
> |   <p:input>
> | <p:inline>
> |  <c:result>file:///home/ht/stylesheets/clever.xsl</c:result>
> | </p:inline>
> |   </p:input>
> |  </p:identity>
> | </p:otherwise>
> | </p:choose>
> | <p:load name="doload">
> | <p:option name="href" select="."/>
> | </p:load>
> | <p:xslt>
> | <p:input>
> |  <p:pipe step="main" port="source"/>
> | </p:input>
> | <p:input>
> |  <p:pipe step="doload" port="result"/>
> | </p:input>
> | </p:xslt>
> |   </p:pipeline>
> |
> | p:load has a *non primary* output port result, but p:otherwise has a
>
> Do you mean p:store, from the p:when?

Yes sorry ! p:store of course !


>
>
> | *primary output* port called result
> |
> | It is said in 4.4 p:choose that
> | [[
> | if any of the subpipelines specifies a primary output port, each
> | subpipeline must specify exactly the same output as primary.
> | ]]
> |
> | Is the spec a bit too hard or do you need to update your example (I'm
> | mixed feeling on this) ?
>
> I think the example needs to be updated.

Yes, I think so too

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 Wednesday, 26 March 2008 14:17:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 26 March 2008 14:17:55 GMT