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

RE: the doc('') function

From: <vojtech.toman@emc.com>
Date: Fri, 12 Aug 2011 02:10:29 -0400
To: <public-xml-processing-model-wg@w3.org>
Message-ID: <3799D0FD120AD940B731A37E36DAF3FE33D974EA64@MX20A.corp.emc.com>
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 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:input port="source">
      <p:document href=""/>


Vojtech Toman
Consultant Software Engineer
EMC | Information Intelligence Group

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:input port="source" select="doc('')">
Best regards,


Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 9 52 475787
Fax : +33 1 4356 1746

RCS Paris 488.018.631
SARL au capital de 10.000 €
Received on Friday, 12 August 2011 06:11:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:49 UTC