Re: "make validate" and <revnumber>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> julien (Sonntag, 4. Januar 2009, 22:09):
>> Hi,
>>
>>>> I get a validity error if I remove the <revnumber> tag from  the
>>>> revhistory. In spite of the DocBook-2.0.17: (revnumber?,date,...
>>>> But in the DocBook-2.0.12, we had: (revnumber, date,...
>>>>
>>>> Is "validate" based on an old version of Docbook?
>>> It should depend on the dtd in the "<!DOCTYPE" line of the source
>>> file.
>>>
>>> Try removing <revnumber> and then changing "4.3" to "4.5" (2x!) in
>>> the "<!DOCTYPE" line. This worked for me.
>>>
>>> Then we should consider switching to DocBook-4.5 (Oct 2006).
>> I tried :
>> <!DOCTYPE sect2 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
>> "http://www.docbook.org/xml/4.5/docbookx.dtd";>
>> This doesn't work :-(. I still have a validity error.
>> (4.5 is installed on my computer)
> 
> Impossible! ;-)
> 
> Did you try
> 	xmllint --nonet --valid --noout /path/to/modfied.xml?

~/SVN-po/trunk> xmllint -nonet --valid --noout src/menus/file-close.xml
src/menus/file-close.xml:85: element link: validity error : IDREF
attribute linkend references an unknown ID "glossary-xcf"

> 
> Did you really replaced both "4.3" strings?
Sure, as you can see in Vitaly's message ;-)
I repeated the test.
> 
> What happens when you replace "4.3" with "4.6" (which is not installed)?

~/SVN-po/trunk> make validate
*** Validating XML (en) ...
I/O error : Attempt to load network entity
http://www.docbook.org/xml/4.6/docbookx.dtd
xml/en/menus/file-close.xml:2: warning: failed to load external entity
"http://www.docbook.org/xml/4.6/docbookx.dtd";
//OASIS//DTD DocBook XML V4.6//EN"
"http://www.docbook.org/xml/4.6/docbookx.dtd";

       ^
-:39025: element revision: validity error : Element revision content
does not follow the DTD, expecting (revnumber , date , (author |
authorinitials)* , (revremark | revdescription)?), got (date
authorinitials revremark )
      </revision>

Weird: "xml/en/menus" !
I have a "xml/en/" folder. I delete it.


===============================
With 4.6:
<!DOCTYPE sect2 PUBLIC "-//OASIS//DTD DocBook XML V4.6//EN"
"http://www.docbook.org/xml/4.6/docbookx.dtd";>


SVN-po/trunk> xmllint -nonet --valid --noout src/menus/file-close.xml
I/O error : Attempt to load network entity
http://www.docbook.org/xml/4.6/docbookx.dtd
src/menus/file-close.xml:2: warning: failed to load external entity
"http://www.docbook.org/xml/4.6/docbookx.dtd";
//OASIS//DTD DocBook XML V4.6//EN"
"http://www.docbook.org/xml/4.6/docbookx.dtd";

       ^
src/menus/file-close.xml:7: validity error : Validation failed: no DTD
found !
<sect2 id="gimp-file-close">
-----------------------------------------
SVN-po/trunk> make validate
*** Validating XML (en) ...
I/O error : Attempt to load network entity
http://www.docbook.org/xml/4.6/docbookx.dtd
xml/en/menus/file-close.xml:2: warning: failed to load external entity
"http://www.docbook.org/xml/4.6/docbookx.dtd";
//OASIS//DTD DocBook XML V4.6//EN"
"http://www.docbook.org/xml/4.6/docbookx.dtd";
(this "xml/en" is a link to src...)

=================================
With 4.5:
<!DOCTYPE sect2 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.docbook.org/xml/4.5/docbookx.dtd";>


SVN-po/trunk> xmllint -nonet --valid --noout src/menus/file-close.xml
src/menus/file-close.xml:85: element link: validity error : IDREF
attribute linkend references an unknown ID "glossary-xcf"

------------------------------
SVN-po/trunk> make validate
*** Validating XML (en) ...
-:39025: element revision: validity error : Element revision content
does not follow the DTD, expecting (revnumber , date , (author |
authorinitials)* , (revremark | revdescription)?), got (date
authorinitials revremark )
      </revision>

==================================
With 4.3:
<!DOCTYPE sect2 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.docbook.org/xml/4.3/docbookx.dtd";>

xmllint -nonet --valid --noout src/menus/file-close.xml
src/menus/file-close.xml:15: element revision: validity error : Element
revision content does not follow the DTD, expecting (revnumber , date ,
(author | authorinitials)* , (revremark | revdescription)?), got (date
authorinitials revremark )
      </revision>
                 ^
src/menus/file-close.xml:85: element link: validity error : IDREF
attribute linkend references an unknown ID "glossary-xcf"

--------------------
SVN-po/trunk> make validate
*** Validating XML (en) ...
-:39025: element revision: validity error : Element revision content
does not follow the DTD, expecting (revnumber , date , (author |
authorinitials)* , (revremark | revdescription)?), got (date
authorinitials revremark )
      </revision>

Julien


_______________________________________________
Gimp-docs mailing list
Gimp-docs@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-docs

[Index of Archives]     [Video For Linux]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [Scanners]     [GEGL]     [Gimp's Home]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux