Boost logo

Boost :

Subject: [boost] Docbook DTD 4.5 causes validity warning : Attribute id of element code: already defined for <!ELEMENT code %ho; (%cptr.char.mix; )*>
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2008-11-20 14:05:00


> -----Original Message-----
> From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]]
On
> Behalf Of John Maddock
> Sent: 20 November 2008 18:00
> To: boost_at_[hidden]
> Subject: Re: [boost] math statistical distribution: multivariate gaussian
>
> Paul A. Bristow wrote:
> >>> Thijs van den Berg wrote:
> >>>>> I did three things, after which I suddenly was able to commit
> >>>>> * I send an email to John Maddock :)
> >>>
> >>> That doesn't change much ;-)
> >>
> >> On the contrary, my experience is that it makes many errors go away
> >> ;-)
>
> LOL!
>
> >> PS Here's one for example:
> >>
> >> This is triggered by changing to use the latest docbook
> >>
> >> using boostbook
> >> : "C:/Program Files/docbook/docbook-xsl-1.74.0"
> >> : "C:/Program Files/docbook/docbook-xml-4.5"
> >> ;
> >>
> >> quickbook.quickbook-to-boostbook
> >> ..\..\bin.v2\doc\sf_and_dist\msvc-9.0\debug\threading-multi\math.xml
> >> Generating Output File:
> >> ..\..\bin.v2\doc\sf_and_dist\msvc-9.0\debug\threading-multi\math.xml
> >> xslt-xsltproc
> >>
..\..\bin.v2\doc\sf_and_dist\msvc-9.0\debug\threading-multi\math.docbook
> >> file:///C%3A/Program%20Files/docbook/docbook-xml-4.5/dbpoolx.mod:7254:
> >> validity error : Redefinition of element code
> >> <!ELEMENT code %ho; (%cptr.char.mix;)*>
>
> Grrr, this message:
> http://lists.boost.org/MailArchives/boost-docs/2005/04/1106.php suggests
> that all Docbook versions post 4.3 have this issue. No idea what the
> problem is though :-(

Ah well, you can't win them all ;-))

The new section in version 4.5 is

<!ENTITY % code.module "INCLUDE">
<![%code.module;[
<!ENTITY % local.code.attrib "">
<!ENTITY % code.role.attrib "%role.attrib;">

<!ENTITY % code.element "INCLUDE">
<![%code.element;[
<!--doc:An inline code fragment.-->
<!ELEMENT code %ho; (%cptr.char.mix;)*>
<!--end of code.element-->]]>

<!ENTITY % code.attlist "INCLUDE">
<![%code.attlist;[
<!ATTLIST code
                language CDATA #IMPLIED
                %common.attrib;
                %code.role.attrib;
                %local.code.attrib;
>
<!--end of code.attlist-->]]>
<!--end of code.module-->]]>

Looks as though I may need to climb another learning curve :-((

A mistake in the syntax perhaps?

I'll look into it.

Paul


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk