RSS/Atom feed Twitter
Site is read-only, email is disabled

Make validate broken

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.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

Make validate broken julien 09 Jul 09:45
  Make validate broken Roman Joost 09 Jul 09:55
  Make validate broken Ulf-D. Ehlert 09 Jul 12:53
julien
2007-07-09 09:45:42 UTC (over 17 years ago)

Make validate broken

Under Suse-10.2, I did all you told .

xxx at linux-zhl6:~/SVN-fr/trunk> make validate ALL_LINGUAS="en" mkdir -p -- xml
/usr/bin/xsltproc \
--nonet \
--xinclude \
--stringparam profile.lang en \ ./stylesheets/profile.xsl \ src/gimp.xml \
> xml/en.xml.tmp
sed -e 's/xmlns[:a-z]*="[^"]*" //' \ -e 's/lang="[A-Za-z_;]*"/lang="en"/' \ -e '/^[ \t]*$/d' \
< xml/en.xml.tmp \
> xml/en.xml
rm -f xml/en.xml.tmp
/usr/bin/xmllint --noout xml/en.xml
/usr/bin/xmllint --noout --valid xml/en.xml > /dev/null touch xml/stamp-en-valid

Is this the new normal display for the "make validate"? If I have an error in a xml file, an error is also displayed, located in the en.xml file... weird! :
mkdir -p -- xml
/usr/bin/xsltproc \
? ? ? ? ? --nonet \
? ? ? ? ? --xinclude \
? ? ? ? ? --stringparam profile.lang en \ ? ? ? ? ? ./stylesheets/profile.xsl \ ? ? ? ? ? src/gimp.xml \
? ? ? ? ? > xml/en.xml.tmp
sed -e 's/xmlns[:a-z]*="[^"]*" //' \ ? ? ? ? ? ? -e 's/lang="[A-Za-z_;]*"/lang="en"/' \ ? ? ? ? ? ? -e '/^[ \t]*$/d' \
? ? ? ? ? < xml/en.xml.tmp \
? ? ? ? ? > xml/en.xml
rm -f xml/en.xml.tmp
/usr/bin/xmllint --noout xml/en.xml
/usr/bin/xmllint --noout --valid xml/en.xml > /dev/null xml/en.xml:10162: element indextem: validity error : No declaration for attribute lang of element indextem
? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ?^
xml/en.xml:10165: element indextem: validity error : No declaration for element indextem
? ? ?
? ? ? ? ? ? ? ? ?^
xml/en.xml:10227: element sect3: validity error : Element sect3 content does not follow the DTD, expecting (sect3info? , (title , subtitle? , titleabbrev?) , (toc | lot | index | glossary | bibliography)* , (((calloutlist | glosslist | itemizedlist | orderedlist | segmentedlist | simplelist | variablelist | caution | important | note | tip | warning | literallayout | programlisting | programlistingco | screen | screenco | screenshot | synopsis | cmdsynopsis | funcsynopsis | classsynopsis | fieldsynopsis | constructorsynopsis | destructorsynopsis | methodsynopsis | formalpara | para | simpara | address | blockquote | graphic | graphicco | mediaobject | mediaobjectco | informalequation | informalexample | informalfigure | informaltable | equation | example | figure | table | msgset | procedure | sidebar | qandaset | task | anchor | bridgehead | remark | highlights | abstract | authorblurb | epigraph | indexterm | beginpage)+ , (refentry* | sect4* | simplesect*)) | refentry+ | sect4+ | simplesect+) , (toc | lot | index | glossary | bibliography)*), got (title indextem para itemizedlist para para ) ? ?
? ? ? ? ? ? ^
make: *** [xml/stamp-en-valid] Error 4

Roman Joost
2007-07-09 09:55:56 UTC (over 17 years ago)

Make validate broken

Hi Julien,

On Mon, Jul 09, 2007 at 09:45:42AM +0200, julien wrote:

xxx at linux-zhl6:~/SVN-fr/trunk> make validate ALL_LINGUAS="en" mkdir -p -- xml
/usr/bin/xsltproc \
--nonet \
--xinclude \
--stringparam profile.lang en \ ./stylesheets/profile.xsl \ src/gimp.xml \
> xml/en.xml.tmp
sed -e 's/xmlns[:a-z]*="[^"]*" //' \ -e 's/lang="[A-Za-z_;]*"/lang="en"/' \ -e '/^[ \t]*$/d' \
< xml/en.xml.tmp \
> xml/en.xml
rm -f xml/en.xml.tmp
/usr/bin/xmllint --noout xml/en.xml
/usr/bin/xmllint --noout --valid xml/en.xml > /dev/null touch xml/stamp-en-valid

Err.. what is wrong here?

Is this the new normal display for the "make validate"? If I have an error in a xml file, an error is also displayed, located in the en.xml file... weird! :
mkdir -p -- xml
/usr/bin/xsltproc \
? ? ? ? ? --nonet \
? ? ? ? ? --xinclude \
? ? ? ? ? --stringparam profile.lang en \ ? ? ? ? ? ./stylesheets/profile.xsl \ ? ? ? ? ? src/gimp.xml \
? ? ? ? ? > xml/en.xml.tmp
sed -e 's/xmlns[:a-z]*="[^"]*" //' \ ? ? ? ? ? ? -e 's/lang="[A-Za-z_;]*"/lang="en"/' \ ? ? ? ? ? ? -e '/^[ \t]*$/d' \
? ? ? ? ? < xml/en.xml.tmp \
? ? ? ? ? > xml/en.xml
rm -f xml/en.xml.tmp
/usr/bin/xmllint --noout xml/en.xml
/usr/bin/xmllint --noout --valid xml/en.xml > /dev/null xml/en.xml:10162: element indextem: validity error : No declaration for attribute lang of element indextem
? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ?^
xml/en.xml:10165: element indextem: validity error : No declaration for element indextem
? ? ?
? ? ? ? ? ? ? ? ?^
xml/en.xml:10227: element sect3: validity error : Element sect3 content does not follow the DTD, expecting (sect3info? , (title , subtitle? , titleabbrev?) , (toc | lot | index | glossary | bibliography)* , (((calloutlist | glosslist | itemizedlist | orderedlist | segmentedlist | simplelist | variablelist | caution | important | note | tip | warning | literallayout | programlisting | programlistingco | screen | screenco | screenshot | synopsis | cmdsynopsis | funcsynopsis | classsynopsis | fieldsynopsis | constructorsynopsis | destructorsynopsis | methodsynopsis | formalpara | para | simpara | address | blockquote | graphic | graphicco | mediaobject | mediaobjectco | informalequation | informalexample | informalfigure | informaltable | equation | example | figure | table | msgset | procedure | sidebar | qandaset | task | anchor | bridgehead | remark | highlights | abstract | authorblurb | epigraph | indexterm | beginpage)+ , (refentry* | sect4* | simplesect*)) | refentry+ | sect4+ | simplesect+) , (toc | lot | index | glossary | bibliography)*), got (title indextem para itemizedlist para para ) ? ?
? ? ? ? ? ? ^
make: *** [xml/stamp-en-valid] Error 4

I don't understand what is broken here for you? Looks good for me and it seems that it validates the XML files...

Greetings,

Ulf-D. Ehlert
2007-07-09 12:53:50 UTC (over 17 years ago)

Make validate broken

Am Montag, 9. Juli 2007 schrieb julien:

Under Suse-10.2, I did all you told .

xxx at linux-zhl6:~/SVN-fr/trunk> make validate ALL_LINGUAS="en" mkdir -p -- xml
/usr/bin/xsltproc \
--nonet \
--xinclude \
--stringparam profile.lang en \ ./stylesheets/profile.xsl \ src/gimp.xml \

> xml/en.xml.tmp

sed -e 's/xmlns[:a-z]*="[^"]*" //' \ -e 's/lang="[A-Za-z_;]*"/lang="en"/' \ -e '/^[ \t]*$/d' \
< xml/en.xml.tmp \

> xml/en.xml

rm -f xml/en.xml.tmp /usr/bin/xmllint --noout xml/en.xml
/usr/bin/xmllint --noout --valid xml/en.xml > /dev/null touch xml/stamp-en-valid

Is this the new normal display for the "make validate"?

Hmm, yes ("make" is creating xml/en.xml).

BTW, you can suppress displaying a command line by prepending it with "@", e.g.
@sed -e ...
or
@rm -f $@.tmp
in Makefile/Makefile.am (do not remove the leading ).

For testing what "make" will do if you change source file "src/foo.xml", add the command line options "-n -W src/foo.xml", e.g.

make -n -W src/foo.xml validate ALL_LINGUAS="en"

If I have an error in a xml file, an error is also displayed, located in the en.xml file... weird! :

The error message used to go to a logfile: $(XMLLINT) ... 2>xml/$*-validity-errors.log now they are displayed :
$(XMLLINT) --noout --valid $< > /dev/null and
$(XMLLINT) --noout $@

(Another bug? It seems xmllint is called twice...)

[...]

/usr/bin/xmllint --noout xml/en.xml /usr/bin/xmllint --noout --valid xml/en.xml > /dev/null

Yes, it's called twice. (Ok, it takes only 1 second...)

Ulf -------------- next part -------------- A non-text attachment was scrubbed... Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /lists/gimp-docs/attachments/20070709/1f099c51/attachment.bin