OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: 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 <tom.browder@gmail.com> 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"

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

Best regards,


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]