The problem

What does it looks like

picture of a fragment extracted from a document

Technical choices

The fragment context

Example of a fragment context

<f:fcs xmlns:f="http://www.w3.org/XML/Fragment/1.0"
       extref="http://www.oasis-open.org/docbook/docbook/3.0/docbook.dtd"
       parentref="http://www.acme.com/~me/mydocs/mybook.xml"
       xmlns="http://www.oasis-open.org/docbook/DocbookSchema">
  <book>
    <part>
      <chapter>
        <sect1/>
        <sect1>
          <orderedlist numeration="arabic">
   	 <listitem/>
   	 <f:fragbody fragbodyref="http://www.acme.com/~me/mydocs/myfrag.xml"/>
          </orderedlist>
        </sect1>
      </chapter>
    </part>
  </book>
</f:fcs>

Fragment context tricks

The packaging syntax

Defined in a non -normative appendix

<p:package xmlns:p="http://www.w3.org/XML/Package/1.0"
	   xmlns:f="http://www.w3.org/XML/Fragment/1.0"
	   xmlns="{the default namespace in effect at the start
		   of the fragment body in the parent document}">
  <f:fcs {the ref attributes on the fcs tag}>
   {the content of the fcs with no namespace prefixes
     necessary except that on the <f:fragbody/> element}
  </f:fcs>

  <p:body>
  {the fragment body with no namespace prefixes necessary}
  </p:body>

</p:package>

Packaging tricks