Reiner Schlenker wrote:
> 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>
> 
> --------------
> 

No, this is not possible. XXE only supports the element() scheme and not 
the xpointer() scheme. Moreover, supporting the xpointer() scheme is not 
planned.


Reply via email to