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: [docbook] Unhappy XEP: anchor as child of section


Hi,

On Freitag, 3. April 2009, David Priest wrote:
> [...]
> > Is there a reason why do you not use the xml:id attribute? If it's
> > just for cross-referencing, xml:id is the perfect match.
>
> Because the xinclude does not copy the section element.  The xml:id
> never makes it into the master document: only its children are copied.

Hmn, I'm a bit confused. Let's say, you have a file foo.xml which contains 
a section. To include it into your master document you just write:

 <xi:include href="foo.xml"/>

Nothing else. :) Everything from foo.xml, including your section, is 
incorporated into your master document.

The situation is a bit different, if you want to include foo.xml more than 
one time. In this case, the multiple, identical xml:id attributes from 
your section makes your document invalid. Have you seen [1]? There is a 
example how to include all children of a section.


Hope that helps a bit,
Tom


-------
[1] http://wiki.docbook.org/topic/DocBookCookbook ?

-- 
Thomas Schraitle


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