On Sun, Jan 29, 2012 at 12:42 AM, Bob Stayton <[email protected]> wrote:
> Hi Jeffrey,
> The errors are about including simplesect in an inappropriate location. The
> DTD does not permit mixing simplesect and sections as siblings.
>
> As you found, your introduction modular file has to have a root element to
> contain all of its content in order for it to be parsed as an XML document,
> but you don't want to include that root element.  I can see two solutions:
>
> 1.  Make the introduction a system entity reference instead of an Xinclude.
>  A system entity file does not need to have a root element, so it could
> contain your sequence of paras and such.
>
> 2.  Since you are using xsltproc, you can use the extended xpointer syntax
> that it supports.  That can select all the children of the root element, but
> not the root element.  Something like:
>
> <xi:include href="test-intro.xml" xpointer="xpointer(/simplesect/*)"
> xmlns:xi="http://www.w3.org/2001/XInclude"/>
>
> This reference has some more details about the latter method:
>
> http://www.sagehill.net/docbookxsl/ModularDoc.html#XincludeSelect
Thanks for the help.

Its unfortunate the folks who wrote the standard have decided to make
a task which should be simple so difficult (from the dumb user
perspective, which is what I am).

Jeff

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to