W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > October 2011

RE: Is the following library conformant?

From: <vojtech.toman@emc.com>
Date: Fri, 7 Oct 2011 09:33:00 -0400
To: <public-xml-processing-model-comments@w3.org>
Message-ID: <3799D0FD120AD940B731A37E36DAF3FE33DAE9F6BE@MX20A.corp.emc.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 7 October 2011 13:33:52 GMT