Re: the doc('') function

This is also my understanding

Interestingly is that the one you proposed (with p:document href="") works
well in Calabash and is hence a nice Quine

Mohamed

On Fri, Aug 12, 2011 at 8:10 AM, <vojtech.toman@emc.com> wrote:

> I think that the empty URI in doc() should be resolved against the base URI
> of the p:input element, which, in this case, should return the pipeline
> document itself. The XPath expression in p:input is evaluated using the
> processor context, the context node is undefined, and the base URI is (see
> 2.6.2.1) is “the base URI of the element on which the expression occurs.”*
> ***
>
> ** **
>
> That is also consistent with:****
>
> ** **
>
> <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="1.0">****
>
>   <p:output port="result"/>****
>
>   <p:identity>****
>
>     <p:input port="source">****
>
>       <p:document href=""/>****
>
>     </p:input>****
>
>   </p:identity>****
>
> </p:declare-step>****
>
> ** **
>
> Regards,****
>
> Vojtech****
>
> ** **
>
> --****
>
> Vojtech Toman****
>
> Consultant Software Engineer****
>
> EMC | Information Intelligence Group****
>
> vojtech.toman@emc.com****
>
> http://developer.emc.com/xmltech****
>
> ** **
>
> *From:* public-xml-processing-model-wg-request@w3.org [mailto:
> public-xml-processing-model-wg-request@w3.org] *On Behalf Of *Innovimax
> SARL
> *Sent:* Thursday, August 11, 2011 4:56 PM
> *To:* XProc WG
> *Subject:* the doc('') function****
>
> ** **
>
> Dear all,****
>
> ** **
>
> What is the expected output of****
>
> ** **
>
> <?xml version="1.0" encoding="UTF-8"?>
> <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="1.0">
>   <p:output port="result"/>
>   <p:identity>
>     <p:input port="source" select="doc('')">
>       <p:empty/>
>     </p:input>
>   </p:identity>
> </p:declare-step>****
>
> Best regards,****
>
> ** **
>
> 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 €****
>



-- 
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 Friday, 12 August 2011 06:34:18 UTC