On Thu, Nov 21, 2013 at 6:09 PM, Tom Browder <[email protected]> wrote:
> I would like to include some DB coded xml into an xml source file (DB
> 5 with namespaces) for a man page but I keep getting validation errors
> (using xmllint --schema).  Is it possible as it is in other parts like
> chapter, article, etc.?
>
> Here's a fragment showing how I'm trying to use it:
>
> <refentry
>   xmlns="http://docbook.org/ns/docbook";
>   xmlns:xi="http://www.w3.org/2001/XInclude";
>   version="5.0" xml:id="attributes"
>>
> <!-- ... -->
> <refsection>
>   <para>
>   <xi:include href="./attributes-standard-table.xml" parse="xml"/>

A clever guy on our team solved the problem by adding an xpointer attribute:

   <xi:include href="./attributes-standard-table.xml" parse="xml"
xpointer="table-id"/>

where "table-id" is the xml:id of the desired parent tag in the included file.

Best regards,

-Tom

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

Reply via email to