Graeme Perkins wrote: > I'm using xinclude to include strings in a modular DocBook book. By > pointing with xpointer to the text in another DocBook file > (SharedText.xml) I can reuse common bits of text. In XXE, I get the errors: > the sequence of child elements is incorrect ... > element cannot contain element xi:include. > > For example: > > <listitem> > <para><xi:include > href="Z:/TextStrings.xml" xmlns:xi=" > http://www.w3.org/2001/XInclude" > xpointer="xpointer(//*...@id='ts-p']/text())" />" > </para> > </listitem> > > Is there a way to make this work? > > (My document set is modular, and other xincludes are resolving. Just not > the type shown above.)
Currently, XXE only supports the XPointer element() scheme ( http://www.w3.org/TR/xptr-element/ ), and not the XPointer xpointer() scheme ( http://www.w3.org/TR/2002/WD-xptr-xpointer-20021219/ ). Why this limitation? Remember that XXE does not suppport XIncludes per se. For XXE, XIncludes are just a tool used transparently for the user to create modular documents. Given these simple requirements, we don't need to support the XPointer xpointer() scheme.

