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] Validate fails with customized profiling


I tried alomost all the exmples in "Customizing DocBook" but do not succed.
Is the trick to add my attribute my_param to the common attributes or to the
ATTLIST of para?

Here is what my chapter document looks like:

DTD:
<!ENTITY % DocBookDTD PUBLIC "-//OASIS//DTD DocBook V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";>
<!ENTITY % local.common.attrib "xml:base CDATA #IMPLIED">
<!ENTITY % entity SYSTEM "arch_entity.ent">
%entity;

XML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE chapter SYSTEM "mydb.dtd">

<chapter><title>My Chapter</title>
<para my_param="yes">
bla bla
</para>

<para my_param="yes">
bla bla
</para>
</chapter>


best regards
Jens


-----Original Message-----
From: Mauritz Jeanson [mailto:mj@johanneberg.com]
Sent: den 1 april 2005 17:44
To: 'Jens Barkvall'; docbook-apps@lists.oasis-open.org
Subject: RE: [docbook-apps] Validate fails with customized profiling


> -----Original Message-----
> From: Jens Barkvall

> Why doesn't the document validate with the <para
> my_param="yes"> but does
> validate with
> <para arch="x86">?


This is because the DocBook DTD does not declare an attribute called
my_param on the <para> element (or any element). If you want to use the
my_param attribute and get your documents to validate, then you have to
declare the attribute by customizing the DTD. Read more about it here:

http://docbook.org/tdg/en/html/docbook.html


> This is what I have tried (snippets below):
> -If I un-comment the "Validating 1" section below I get the error
>  "No declaration for attribute my_param of element para"
>
> -If I un-comment the "Validating 2" section below I get the error
>  "No declaration for attribute base of element section" a
> number of times.
> What of I have read on this ml, I get these errors because we
> have the files
> on different locations, correct? I tried to remove all
> xml:base=" ..." in
> the document but validation of that document still failed
> with the error
> above ("No declaration for attribute my_param of element para").


The xml:base attribute was introduced in version 4.3 of the DTD. Are you
perhaps using an older version?

/MJ



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