Hello,

is it possible in XXE to reuse fragments of XML-documents by adressing them
with XPath-expressions in the Xpointer-statement? I have tried, but get a
parsing-error. This would be extremely helpful to build up modular
documents.

Example:

>From the following section, only the <para>-elements with the values 'a' and
'c' in the id-attribute shall be referenced into a <chapter>-Element.


-----
<section>
  <title>Title</title>

  <para id="a">Para 1</para>

  <para id="b">Para 2</para>

  <para id="c">Para 3</para>
</section>


---------------

<chapter>
  <title>Chapter</title>
   <section>
    <xi:include href="Section.xml"
xmlns:xi="http://www.w3.org/2001/XInclude";
     xpointer(//pa...@id='a'] | //pa...@id='c'])/>
   </section>
</chapter>

--------------

Thanks,

Reiner Schlenker


Reply via email to