← Prev in month ← Prev in thread

Re: Man Page XML (refentry, refsection): xi::include doesn't work for me [SOLVED]

From
Tom Browder <>
Date
2013-11-22T12:53:47+00:00
ID
CAFMGiz8=
Thread
Re: Man Page XML (refentry, refsection): xi::include doesn't work for me [SOLVED]
On Thu, Nov 21, 2013 at 6:09 PM, Tom Browder <> 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
← Prev in month ← Prev in thread