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

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 UTC