RE: Is the following library conformant?

Yes, I think it is valid and there is nothing wrong with it. Except that it uses infinite recursion. But that is a programming error, not different from:

<p:declare-step type="test:step" name="test-step">
  <p:input port="source" sequence="true"/>
  <p:output port="result"/>
  <test:step/>
</p:declare-step>

Regards,
Vojtech

--
Vojtech Toman
Consultant Software Engineer
EMC | Information Intelligence Group
vojtech.toman@emc.com
http://developer.emc.com/xmltech


> -----Original Message-----
> From: public-xml-processing-model-comments-request@w3.org
> [mailto:public-xml-processing-model-comments-request@w3.org] On Behalf
> Of James Fuller
> Sent: Friday, October 07, 2011 3:21 PM
> To: Norman Walsh
> Cc: public-xml-processing-model-comments@w3.org
> Subject: Re: Is the following library conformant?
> 
> On Fri, Oct 7, 2011 at 3:11 PM, Norman Walsh <ndw@nwalsh.com> wrote:
> > Consider:
> >
> > <p:library xmlns:p="http://www.w3.org/ns/xproc" version="1.0"
> >           xmlns:test="http://xproc.org/ns/testsuite/test">
> >
> > <p:declare-step type="test:step" name="test-step">
> >  <p:input port="source" sequence="true"/>
> >  <p:output port="result"/>
> >  <test:step4/>
> > </p:declare-step>
> >
> > <p:declare-step type="test:step4" name="test-step">
> >  <p:input port="source" sequence="true"/>
> >  <p:output port="result"/>
> >  <test:step/>
> > </p:declare-step>
> >
> > </p:library>
> 
> I am tempted to say that this is a valid p:library definition, however
> its unclear what would happen when its imported into another XProc and
> invoked. still thinking about it....
> 
> J
> 
> >
> > Is that library valid?
> >
> >                                        Be seeing you,
> >                                          norm
> >
> > --
> > Norman Walsh
> > Lead Engineer
> > MarkLogic Corporation
> > Phone: +1 413 624 6676
> > www.marklogic.com
> >
> 

Received on Friday, 7 October 2011 13:33:52 UTC