You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Berin Loritsch <bl...@apache.org> on 2003/03/24 19:23:35 UTC

Any body else getting a message like this?

Using skin d-haven
____________________________________
<snip/>

validate-skins-stylesheets:
Fatal error: exception "java.io.UTFDataFormatException" thrown: Invalid
byte 1 of 1-byte UTF-8 sequence.

BUILD FAILED
file://D:/projects/xml-forrest/build/dist/shbat/forrest.build.xml:829: 
Validation failed, messages should have been provided.

How do I know where this is happening?  To my knowledge everything
is in the proper encoding.


Re: Any body else getting a message like this?

Posted by Jeff Turner <je...@apache.org>.
On Tue, Mar 25, 2003 at 05:30:38PM +0300, Konstantin Piroumian wrote:
> From: "Jeff Turner" <je...@apache.org>
> > On Tue, Mar 25, 2003 at 09:01:51AM -0500, Berin Loritsch wrote:
> > > Berin Loritsch wrote:
> > > >Jeff Turner wrote:
> > > >
> ...
> > > >
> > > >:/ I am on Winblows.  Does xmllint exist for Cygwin?
> > >
> > > Ok, xmllint DOES exist for Cygwin.
> >
> > That's good.  Here's some tips on using xmllint to validate Forrest XML:
> >
> >
> http://xml.apache.org/forrest/validation.html#Case+study%3A+setting+up+xmlli
> nt
> 
> It'd be also fine to explain what the vim settings mean and how to use them.
> We - Windows/Cygwin and eventual Linux users - would be very happy. ;)

  au FileType xml set makeprg=xmllint\ --noout\ --valid\ --catalogs\ %
  au FileType xml set efm=%A%f:%l:\ %.%#error:\ %m,%-Z%p^,%-C%.%#

Sets up two "autocommands" that trigger when an XML file is loaded.
First the 'makeprg' is set to the xmllint command, so typing ':make'
triggers xmllint, instead of GNU make.  Then in order to jump to errors,
we set the errorformat (efm) to some cryptic string described by ':help
errorformat'.

Pretty obvious really.

:)

--Jeff

> 
> --
>   Konstantin
> 

Re: Any body else getting a message like this?

Posted by Konstantin Piroumian <kp...@apache.org>.
From: "Jeff Turner" <je...@apache.org>
> On Tue, Mar 25, 2003 at 09:01:51AM -0500, Berin Loritsch wrote:
> > Berin Loritsch wrote:
> > >Jeff Turner wrote:
> > >
...
> > >
> > >:/ I am on Winblows.  Does xmllint exist for Cygwin?
> >
> > Ok, xmllint DOES exist for Cygwin.
>
> That's good.  Here's some tips on using xmllint to validate Forrest XML:
>
>
http://xml.apache.org/forrest/validation.html#Case+study%3A+setting+up+xmlli
nt

It'd be also fine to explain what the vim settings mean and how to use them.
We - Windows/Cygwin and eventual Linux users - would be very happy. ;)

--
  Konstantin

>
> --Jeff
>
> > The problem was an invisible character that my text editors ignored.
> > It is Easily removed when you know where the problem is.
> >
> > Thanks for the xmllint hint!
> >
> >
>
>


Re: Any body else getting a message like this?

Posted by Jeff Turner <je...@apache.org>.
On Tue, Mar 25, 2003 at 09:01:51AM -0500, Berin Loritsch wrote:
> Berin Loritsch wrote:
> >Jeff Turner wrote:
> >
> >>
> >>Try running 'forrest -v validate', which prints out the file names as it
> >>goes.  Perhaps you have an 8859-1 8-bit character (é or something) in
> >>your XML.  If you're on Unix, try installing libxml2, which comes with a
> >>marvellous utility 'xmllint'.  Its error messages are *much* better than
> >>Xerces.
> >
> >
> >:/ I am on Winblows.  Does xmllint exist for Cygwin?
> 
> Ok, xmllint DOES exist for Cygwin.

That's good.  Here's some tips on using xmllint to validate Forrest XML:

http://xml.apache.org/forrest/validation.html#Case+study%3A+setting+up+xmllint

--Jeff

> The problem was an invisible character that my text editors ignored.
> It is Easily removed when you know where the problem is.
> 
> Thanks for the xmllint hint!
> 
> 

Re: Any body else getting a message like this?

Posted by Berin Loritsch <bl...@apache.org>.
Berin Loritsch wrote:
> Jeff Turner wrote:
> 
>>
>> Try running 'forrest -v validate', which prints out the file names as it
>> goes.  Perhaps you have an 8859-1 8-bit character (é or something) in
>> your XML.  If you're on Unix, try installing libxml2, which comes with a
>> marvellous utility 'xmllint'.  Its error messages are *much* better than
>> Xerces.
> 
> 
> :/ I am on Winblows.  Does xmllint exist for Cygwin?

Ok, xmllint DOES exist for Cygwin.

The problem was an invisible character that my text editors ignored.
It is Easily removed when you know where the problem is.

Thanks for the xmllint hint!



Re: Any body else getting a message like this?

Posted by Berin Loritsch <bl...@apache.org>.
Jeff Turner wrote:
> 
> Try running 'forrest -v validate', which prints out the file names as it
> goes.  Perhaps you have an 8859-1 8-bit character (é or something) in
> your XML.  If you're on Unix, try installing libxml2, which comes with a
> marvellous utility 'xmllint'.  Its error messages are *much* better than
> Xerces.

:/ I am on Winblows.  Does xmllint exist for Cygwin?

The results (I am no closer):

validate-xdocs:
Using SAX2 reader org.apache.xerces.parsers.SAXParser
Validating index.xml...
Validating useage.xml...
Validating index.xml...
Validating faq.xml...
Validating features.xml...
Validating index.xml...
Validating index.xml...
Validating tabs.xml...
8 file(s) have been successfully validated.
...validated xdocs

validate-skinconf:
...validated skinconf

validate-sitemap:
...validated sitemap

validate-skins-stylesheets:
Fatal error: exception "java.io.UTFDataFormatException" thrown: Invalid 
byte 1 o
f 1-byte UTF-8 sequence.

BUILD FAILED
file://D:/projects/xml-forrest/build/dist/shbat/forrest.build.xml:829: 
Validatio
n failed, messages should have been provided.
         at com.thaiopensource.relaxng.util.JingTask.execute(Unknown Source)
         at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:309)
         at org.apache.tools.ant.Target.performTasks(Target.java:336)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1331)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1275)
         at org.apache.tools.ant.Main.runBuild(Main.java:614)
         at org.apache.tools.ant.Main.start(Main.java:197)
         at org.apache.tools.ant.Main.main(Main.java:235)

Total time: 16 seconds


Re: Any body else getting a message like this?

Posted by Jeff Turner <je...@apache.org>.
On Mon, Mar 24, 2003 at 01:23:35PM -0500, Berin Loritsch wrote:
> Using skin d-haven
> ____________________________________
> <snip/>
> 
> validate-skins-stylesheets:
> Fatal error: exception "java.io.UTFDataFormatException" thrown: Invalid
> byte 1 of 1-byte UTF-8 sequence.
> 
> BUILD FAILED
> file://D:/projects/xml-forrest/build/dist/shbat/forrest.build.xml:829: 
> Validation failed, messages should have been provided.
> 
> How do I know where this is happening?  To my knowledge everything
> is in the proper encoding.

Try running 'forrest -v validate', which prints out the file names as it
goes.  Perhaps you have an 8859-1 8-bit character (é or something) in
your XML.  If you're on Unix, try installing libxml2, which comes with a
marvellous utility 'xmllint'.  Its error messages are *much* better than
Xerces.

--Jeff