W3C home > Mailing lists > Public > xproc-dev@w3.org > March 2011

Re: Adding p:group gets rid of ERR : Unbound primary output.. why?

From: Romain Deltour <rdeltour@gmail.com>
Date: Thu, 17 Mar 2011 15:26:42 +0100
Cc: XProc Dev <xproc-dev@w3.org>
Message-Id: <36A14EB1-17A9-4F62-8B63-446A78F0D666@gmail.com>
To: Alex Muir <alex.g.muir@gmail.com>
It would help to know what is the outer context of this p:group, since  
the connections depends on it.

In any case, I think the "GetCopyCitySpecificWikiDump" p:idendity step  
in your p:group creates an implicit primary output port on the  
p:group. Here's the spec wording:

"if a compound step has no declared outputs and the last step in its  
subpipeline has an unconnected primary output, then an implicit  
primary output port will be added to the compound step (and  
consequently the last step's primary output will be connected to it).  
This implicit output port has no name."

Romain.


Le 17 mars 11 à 15:00, Alex Muir a écrit :

> Hi,
>
> Why does adding a p:group get rid of the following error message?
>
> E [Calabash XProc] ERR : Unbound primary output: [output result on ! 
> 1.29]
>
> Without the p:group in the following bit of code, in a larger  
> pipeline, I'm getting the above error message. Something in my gut  
> told me group the content and then no more error message is  
> displayed in oxygen. Why the error and why did it go away when  
> grouped?
>
>  <p:group>
>     <p:identity name="PutCopyCitySpecificWikiDump"/>
>
>     <p:xslt name="identifyDifferentOldNewOfficeCodes" version="1.0"  
> oh:doc="run xslt to append the office code list">
>       <p:input port="stylesheet">
>         <p:document href="../xslt/ 
> identifyDifferentOldNewOfficeCodes.xsl"/>
>       </p:input>
>       <p:with-param name="hrefRDF" select="$hrefRDF"/>
>       <p:with-param name="regexSelectSchemaTypes" select="'\{\{Schema 
> \s+(E(lement|numeration)|Type|Attribute)'"/>
>       <p:input port="parameters">
>         <p:empty/>
>       </p:input>
>     </p:xslt>
>
>
>     <oh:save-output step- 
> name="saveidentifyDifferentOldNewOfficeCodes">
>       <p:with-option name="save" select="'true'"/>
>       <p:with-option name="href"  
> select="$hrefIdentifyDifferentOldNewOfficeCodes"/>
>     </oh:save-output>
>
>     <p:identity name="GetCopyCitySpecificWikiDump">
>       <p:input port="source">
>         <p:pipe port="result" step="PutCopyCitySpecificWikiDump"/>
>       </p:input>
>     </p:identity>
>   </p:group>
>
> Regards
>
> -- 
> Alex
> -----
> Currently:
> Freelance Software Engineer 6+ yrs exp
>
> Previously:
> https://sites.google.com/a/utg.edu.gm/alex/
>
>
> A Bafila, is two rivers flowing together as one:
> http://www.facebook.com/pages/Bafila/125611807494851
>
>
>
Received on Thursday, 17 March 2011 14:27:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 17 March 2011 14:27:20 GMT