V.next: resource manager

Here's a big one to chew on.

Suppose http://example.com/doc.xml contains:

  <doc>
    <a/>
    <b/>
    <c/>
  </doc>

And consider this pipeline fragment:

  <p:delete match="a">
    <p:input port="source">
      <p:document href="http://example.com/doc.xml"/>
    </p:input>
  </p:delete>

  <p:sink/>

  <p:xinclude>
    <p:input port="source">
      <p:inline>
        <book>
          <xi:include href="http://example.com/doc.xml"/>
        </book>
      </p:inline>
    </p:input>
  </p:xinclude>

Assume for the moment that the p:delete step runs to completion before
the p:xinclude step starts.

Which document does the p:xinclude step produce?

  <book>
  <doc>
    <a/>
    <b/>
    <c/>
  </doc>
  </book>

or

  <book>
  <doc>
    <b/>
    <c/>
  </doc>
  </book>

I think the latter is the more useful, if perhaps more surprising, result.

Discuss. :-)

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
Lead Engineer
MarkLogic Corporation
Phone: +1 413 624 6676
www.marklogic.com

Received on Thursday, 5 January 2012 14:16:38 UTC