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

Re: the doc('') function

From: Innovimax W3C <innovimax+w3c@gmail.com>
Date: Fri, 26 Aug 2011 14:08:31 +0200
Message-ID: <CAAK2GfEQyyzz6A280nNWSynHuzUY6xbzjxvar-xiFD+mObG0Ow@mail.gmail.com>
To: vojtech.toman@emc.com
Cc: public-xml-processing-model-wg@w3.org
Ok just created an issue for Calabash

Thanks

Mohamed

On Fri, Aug 12, 2011 at 8:33 AM, Innovimax W3C <innovimax+w3c@gmail.com>wrote:

> 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 €
>



-- 
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, 26 August 2011 12:08:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 26 August 2011 12:09:00 GMT