Re: [Gimp-docs] verifying xml files

2012-12-14 Thread Kolbjørn Stuestøl

Den 14.12.2012 08:11, skreiv Julien Hardelin:

Le 13/12/2012 23:07, Kolbjørn Stuestøl a écrit :

Is there a simple way to verify xml files in gimp-help-2?

When running "make" commands like "make pot" I get the error message
"Makefile:1259: target `xml/en/toolbox/transform/common-features' 
doesn't match the target pattern"


It is my file "src/toolbox/transform/common-features" that is the 
reason for the error.


Obviously I have a wrong code or something in my xml file. But 
finding the error(s) can be a tedious job.
(I am trying to incorporate Sven's explanation on how to transform 
paths.)

I am using Notepad++
Kolbjoern
___
gimp-docs-list mailing list
gimp-docs-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-docs-list


Hi,
Did you pull recently? There was a parser error in common-features.xml 
that I corrected recently: an unwanted  
that I deleted.
It was in lines 330-340, or something like that, around the "If 
this marked, which is the default..."

Julien

Thank you.
No, I did not pull until now, but found the error by hand.
Normally the programs sorts out such errors, but for some reason or 
other not always. Perhaps I have to invest in a code writer program or 
something. :-)


Also tried Liam's idea, and it works. Next step is to figure out how to 
get the command to tell me what is wrong, not only correcting it.


Kolbjoern
___
gimp-docs-list mailing list
gimp-docs-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-docs-list


Re: [Gimp-docs] verifying xml files

2012-12-14 Thread Kolbjørn Stuestøl

Den 14.12.2012 01:12, skreiv Liam R E Quin:

On Thu, 2012-12-13 at 23:07 +0100, Kolbjørn Stuestøl wrote:


Obviously I have a wrong code or something in my xml file. But finding
the error(s) can be a tedious job.

One way is to use
   xmllint --noout some-xml-file
on the command-line.

Thank you. It works.
Kolbjoern


Another is to use an XML-aware editor; XPontus is Free, although I
haven't tried it recently.

Liam



___
gimp-docs-list mailing list
gimp-docs-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-docs-list


Re: [Gimp-docs] verifying xml files

2012-12-13 Thread Julien Hardelin

Le 13/12/2012 23:07, Kolbjørn Stuestøl a écrit :

Is there a simple way to verify xml files in gimp-help-2?

When running "make" commands like "make pot" I get the error message
"Makefile:1259: target `xml/en/toolbox/transform/common-features' 
doesn't match the target pattern"


It is my file "src/toolbox/transform/common-features" that is the 
reason for the error.


Obviously I have a wrong code or something in my xml file. But finding 
the error(s) can be a tedious job.
(I am trying to incorporate Sven's explanation on how to transform 
paths.)

I am using Notepad++
Kolbjoern
___
gimp-docs-list mailing list
gimp-docs-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-docs-list


Hi,
Did you pull recently? There was a parser error in common-features.xml 
that I corrected recently: an unwanted  
that I deleted.
It was in lines 330-340, or something like that, around the "If 
this marked, which is the default..."

Julien
___
gimp-docs-list mailing list
gimp-docs-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-docs-list


Re: [Gimp-docs] verifying xml files

2012-12-13 Thread Liam R E Quin
On Thu, 2012-12-13 at 23:07 +0100, Kolbjørn Stuestøl wrote:

> Obviously I have a wrong code or something in my xml file. But finding 
> the error(s) can be a tedious job.

One way is to use
  xmllint --noout some-xml-file
on the command-line.

Another is to use an XML-aware editor; XPontus is Free, although I
haven't tried it recently.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
Co-author, 5th edition of "Beginning XML", Wrox, 2012

___
gimp-docs-list mailing list
gimp-docs-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-docs-list