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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

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


Subject: Re: [docbook-apps] Resetting TOCs in a book by article


David White:
> Hi Bob,
> 
> I've think I might have come to grips with our situation regarding getting
> article TOCs to work in our book.
> 
>  All of our articles share the same id's thus there are tons of duplicates
> the only difference between a french and english chapter/title is the
> lang="en" or lang="de" attribute.
> 
> <book>
> 
>  <article id="a-10c0fa7-103d1dd5236--7c1e" lang="en"/>
> 
>  <article id="a-10c0fa7-103d1dd5236--7c1e" lang="fr"/>
> 
>  <article id="a-10c0fa7-103d1dd5236--7c1e" lang="de"/>
> 
>  <article id="a-10c0fa7-103d1dd5236--7c1e" lang="hr"/>
> 
>  </book>
> 
> Will having sevaral articles with matching id's cause the TOC to not reset
> correctly?
I thought id's need to be _unique_.
Your example is not valid xml. (tested against xmllint with:
------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";>
 <book>

 <article id="a-10c0fa7-103d1dd5236--7c1e" lang="en"/>

  <article id="a-10c0fa7-103d1dd5236--7c1e" lang="fr"/>
 
  <article id="a-10c0fa7-103d1dd5236--7c1e" lang="de"/>
 
  <article id="a-10c0fa7-103d1dd5236--7c1e" lang="hr"/>
 
  </book>
-------------

and getting:
[...]
test:13: element article: validity error : ID a-10c0fa7-103d1dd5236--7c1e already defined

So to be on the save side your article's id's should also 
reflect the language.

Ciao

Jens Skripczynski
-- 
E-Mail: skripi-lists(at)myrealbox(dot)com

Tollef Fog Heen
Unix _IS_ user friendly... It's just selective about who its friends are.



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