"make validate" and <revnumber>
This discussion is connected to the gimp-docs-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.
This is a read-only list on gimpusers.com so this discussion thread is read-only, too.
"make validate" and <revnumber> | julien | 03 Jan 21:36 |
"make validate" and <revnumber> | Ulf-D. Ehlert | 04 Jan 13:08 |
"make validate" and <revnumber> | julien | 04 Jan 22:09 |
"make validate" and <revnumber> | Ulf-D. Ehlert | 05 Jan 18:55 |
"make validate" and <revnumber> | julien | 05 Jan 21:22 |
"make validate" and <revnumber> | Ulf-D. Ehlert | 05 Jan 22:32 |
"make validate" and <revnumber> | julien | 06 Jan 16:02 |
"make validate" and <revnumber> | Ulf-D. Ehlert | 07 Jan 20:12 |
"make validate" and <revnumber> | julien | 08 Jan 08:16 |
"make validate" and <revnumber> | Marco Ciampa | 08 Jan 09:16 |
"make validate" and <revnumber> | Ulf-D. Ehlert | 08 Jan 22:02 |
"make validate" and <revnumber>
Hi,
I get a validity error if I remove the 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?
(I thought I had resolved the problem we discuss a few days ago by adding a tag :-( ).
Julien
Julien
"make validate" and <revnumber>
julien (Samstag, 3. Januar 2009, 21:36):
I get a validity error if I remove the 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.</p><p>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).
Ulf
"make validate" and <revnumber>
Hi,
I get a validity error if I remove the 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.</p><p>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)
Julien
"make validate" and <revnumber>
julien (Sonntag, 4. Januar 2009, 22:09):
Hi,
I get a validity error if I remove the 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.</p><p>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?
Did you really replaced both "4.3" strings?
What happens when you replace "4.3" with "4.6" (which is not installed)?
Ulf
"make validate" and <revnumber>
julien (Sonntag, 4. Januar 2009, 22:09):
Hi,
I get a validity error if I remove the 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.</p><p>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 )
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 !
-----------------------------------------
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 )
==================================
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 )
^
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 )
Julien
"make validate" and <revnumber>
julien (Montag, 5. Januar 2009, 21:22):
~/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"
That's ok, this message is independent of the DocBook version. You will have to look for messages about the missing tag, of course, see below.
~/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 is the message you would get if xmllint failed to load the DocBook-4.5 DTD, so you know that xmllint is indeed using the correct 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 )
That's it! This message depends on the DocBook version. DocBook-4.5 would accept this , DocBook-4.3 won't.
Weird: "xml/en/menus" !
I have a "xml/en/" folder. I delete it.
Tell us when it happens again.
Bye, Ulf
"make validate" and <revnumber>
Hi,
That's it! This message depends on the DocBook version. DocBook-4.5 would accept this , DocBook-4.3 won't.
Yes, DocBook-4.5 is recognized by my system. But why doesn't it accept "revnumber?" ?
We must get rid of this tag, because "svn status" goes on listing as "M" the files I have committed, only because the revnumber has changed. It is not easy to know which revnumber will be given to a file on committing when editing it.
But it would be interesting to keep a without because of the date, author and revremark tags.
Julien
"make validate" and <revnumber>
julien (Dienstag, 6. Januar 2009, 16:02):
Yes, DocBook-4.5 is recognized by my system. But why doesn't it accept "revnumber?" ?
It *does*, you were fooled by error messages which had nothing to do with the tags. Try it again with a file that is valid according to DocBook-4.3 DTD.
We must get rid of this tag, because "svn status" goes on listing as "M" the files I have committed, only because the revnumber has changed.
Are you sure? IMHO this can't happen: the *real* text is "$Revision$" (in the xml file), and what we see is just subversion's expanded text.
But it would be interesting to keep a without because of the date, author and revremark tags.
I can live without that information... ;-)
Bye, Ulf
"make validate" and <revnumber>
julien (Dienstag, 6. Januar 2009, 16:02):
Yes, DocBook-4.5 is recognized by my system. But why doesn't it accept "revnumber?" ?
It *does*, you were fooled by error messages which had nothing to do with the tags. Try it again with a file that is valid according to DocBook-4.3 DTD.
I tried with several files that were valid for dockbook-4.3 and I always get the same error...
We must get rid of this tag, because "svn status" goes on listing as "M" the files I have committed, only because the revnumber has changed.
Are you sure? IMHO this can't happen: the *real* text is "$Revision$" (in the xml file), and what we see is just subversion's expanded text.
1- I create a pot file, after editing the xml file.
2- I create the po-fr file.
3- I commit
Some days after, I "svn update". The revnumber in the xml file is changed.
4- I run make po-fr : the msgid "$Revision: xxxx $" is changed and the
item is marked as "Fuzzy"
5- svn status lists the po file as "M"...and there you have it!
If I run "make pot" for all xml files, it's worse: I have a huge commit with all the po-fr, that I have not time to edit. So I have to create pot one by one.
But it would be interesting to keep a without because of the date, author and revremark tags.
I can live without that information... ;-)
Good! Too many problems with this minor question. I'll remove the tags
Bye,
Julien
"make validate" and <revnumber>
On Thu, Jan 08, 2009 at 08:16:54AM +0100, julien wrote:
But it would be interesting to keep a without because of the date, author and revremark tags.
I can live without that information... ;-)
Good! Too many problems with this minor question. I'll remove the tags
Happy to hear/see this! :-)
+1
"make validate" and <revnumber>
julien (Donnerstag, 8. Januar 2009, 08:16):
I tried with several files that were valid for dockbook-4.3 and I always get the same error...
Your computer hates you... ;-)
$ grep revnumber /usr/share/xml/docbook/schema/dtd/4.5/* .../ChangeLog: ... Make revnumber optional .../dbpoolx.mod: <!ELEMENT revision %ho; (revnumber?, date, ... ...
Try the above grep command, you should get the same output...
1- I create a pot file, after editing the xml file. 2- I create the po-fr file.
3- I commit
Some days after, I "svn update". The revnumber in the xml file is changed. 4- I run make po-fr : the msgid "$Revision: xxxx $" is changed and the item is marked as "Fuzzy" 5- svn status lists the po file as "M"...and there you have it!
Damned, of course you are right. :-(
The SVN $Revision$ keyword should never be used as DocBook's , instead a static number should be used:
0.91
11 Dec 1996
ndw
Bug fixes
0.90
30 Nov 1996
ndw
First beta release
(Example from DTDG.)
Ulf