Mailing List Archive

Problems with build
Hi,

I'm pretty sure I'm missing something simple. Below is the code from my xml
file. It shows up properly when using 'forrest run'. When I'm trying to run
'forrest' however, I'm getting an error and I don't know what should I do to
fix it. The erorr is:

validate-xdocs:
C\Dosuments and Settings\...\index.xml: The content of element type "body"
must match
"(section|p|source|note|warning|fixme|table|ol|ul|figure|anchor)+"

BUILD FAILED
...index.xml fis not a valid xml document.


Any insight will be very appreciated!

The code:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
"http://forrest.apache.org/dtd/document-v20.dtd">
<document>
<header>
<title>Contact ViroGen</title>
</header>
<body>
<p class="center"> ../resources/images/about.jpg </p>
</body>
</document>
--
View this message in context: http://www.nabble.com/Problems-with-build-tp19641019p19641019.html
Sent from the Apache Forrest - Users mailing list archive at Nabble.com.
Re: Problems with build [ In reply to ]
Irrra wrote:
>
> I'm pretty sure I'm missing something simple. Below is the code from my xml
> file. It shows up properly when using 'forrest run'. When I'm trying to run
> 'forrest' however, I'm getting an error and I don't know what should I do to
> fix it. The erorr is:
>
> validate-xdocs:
> C\Dosuments and Settings\...\index.xml: The content of element type "body"
> must match
> "(section|p|source|note|warning|fixme|table|ol|ul|figure|anchor)+"
>
> BUILD FAILED
> ...index.xml fis not a valid xml document.
>
>
> Any insight will be very appreciated!
>
> The code:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
> "http://forrest.apache.org/dtd/document-v20.dtd">
> <document>
> <header>
> <title>Contact ViroGen</title>
> </header>
> <body>
> <p class="center"> ../resources/images/about.jpg </p>
> </body>
> </document>

I have no idea sorry. It looks legitimate to me.
In fact i added your file to a test site and it
does validate correctly here.

Please try a seed-sample site ...
cd my-new-directory
forrest seed-sample
forrest validate-xdocs

Then add your file as src/documentation/content/xdocs/irrra-test.xml
and try again:
forrest validate-xdocs

-David
Re: Problems with build [ In reply to ]
On Tue, 2008-09-23 at 19:51 -0700, Irrra wrote:
> Hi,
>
> I'm pretty sure I'm missing something simple. Below is the code from my xml
> file. It shows up properly when using 'forrest run'. When I'm trying to run
> 'forrest' however, I'm getting an error and I don't know what should I do to
> fix it. The erorr is:
>
> validate-xdocs:
> C\Dosuments and Settings\...\index.xml: The content of element type "body"
> must match
> "(section|p|source|note|warning|fixme|table|ol|ul|figure|anchor)+"
>
> BUILD FAILED
> ...index.xml fis not a valid xml document.
>
>
> Any insight will be very appreciated!

Are you using jdk6?

salu2

>
> The code:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
> "http://forrest.apache.org/dtd/document-v20.dtd">
> <document>
> <header>
> <title>Contact ViroGen</title>
> </header>
> <body>
> <p class="center"> ../resources/images/about.jpg </p>
> </body>
> </document>
--
Thorsten Scherler thorsten.at.apache.org
Open Source Java consulting, training and solutions
Re: Problems with build [ In reply to ]
Nope, it's JDK 5 the environment variable is referring to... But I might have
both 5 and 6 installed on my machine. May it be the problem?



Thorsten Scherler-3 wrote:
>
> On Tue, 2008-09-23 at 19:51 -0700, Irrra wrote:
>> Hi,
>>
>> I'm pretty sure I'm missing something simple. Below is the code from my
>> xml
>> file. It shows up properly when using 'forrest run'. When I'm trying to
>> run
>> 'forrest' however, I'm getting an error and I don't know what should I do
>> to
>> fix it. The erorr is:
>>
>> validate-xdocs:
>> C\Dosuments and Settings\...\index.xml: The content of element type
>> "body"
>> must match
>> "(section|p|source|note|warning|fixme|table|ol|ul|figure|anchor)+"
>>
>> BUILD FAILED
>> ...index.xml fis not a valid xml document.
>>
>>
>> Any insight will be very appreciated!
>
> Are you using jdk6?
>
> salu2
>
>>
>> The code:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>> <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
>> "http://forrest.apache.org/dtd/document-v20.dtd">
>> <document>
>> <header>
>> <title>Contact ViroGen</title>
>> </header>
>> <body>
>> <p class="center"> ../resources/images/about.jpg </p>
>> </body>
>> </document>
> --
> Thorsten Scherler thorsten.at.apache.org
> Open Source Java consulting, training and solutions
>
>
>

--
View this message in context: http://www.nabble.com/Problems-with-build-tp19641019p19647549.html
Sent from the Apache Forrest - Users mailing list archive at Nabble.com.
Re: Problems with build [ In reply to ]
On Wed, 2008-09-24 at 05:19 -0700, Irrra wrote:
> Nope, it's JDK 5 the environment variable is referring to...

Ok, since there is an open issue with the validation and JDK 6.

> But I might have
> both 5 and 6 installed on my machine. May it be the problem?

No it is something different. I suspect there sneaked an illegal between
body and p. Try the following (one line no spaces between the tags):
...
<body><p>...</p><body>

What does gives that?

salu2
>
>
>
> Thorsten Scherler-3 wrote:
> >
> > On Tue, 2008-09-23 at 19:51 -0700, Irrra wrote:
> >> Hi,
> >>
> >> I'm pretty sure I'm missing something simple. Below is the code from my
> >> xml
> >> file. It shows up properly when using 'forrest run'. When I'm trying to
> >> run
> >> 'forrest' however, I'm getting an error and I don't know what should I do
> >> to
> >> fix it. The erorr is:
> >>
> >> validate-xdocs:
> >> C\Dosuments and Settings\...\index.xml: The content of element type
> >> "body"
> >> must match
> >> "(section|p|source|note|warning|fixme|table|ol|ul|figure|anchor)+"
> >>
> >> BUILD FAILED
> >> ...index.xml fis not a valid xml document.
> >>
> >>
> >> Any insight will be very appreciated!
> >
> > Are you using jdk6?
> >
> > salu2
> >
> >>
> >> The code:
> >>
> >> <?xml version="1.0" encoding="UTF-8"?>
> >>
> >> <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
> >> "http://forrest.apache.org/dtd/document-v20.dtd">
> >> <document>
> >> <header>
> >> <title>Contact ViroGen</title>
> >> </header>
> >> <body>
> >> <p class="center"> ../resources/images/about.jpg </p>
> >> </body>
> >> </document>
> > --
> > Thorsten Scherler thorsten.at.apache.org
> > Open Source Java consulting, training and solutions
> >
> >
> >
>
--
Thorsten Scherler thorsten.at.apache.org
Open Source Java consulting, training and solutions
Re: Problems with build [ In reply to ]
Thorsten Scherler wrote:
> Irrra wrote:
> > Nope, it's JDK 5 the environment variable is referring to...
>
> Ok, since there is an open issue with the validation and JDK 6.

I don't reckon that that is the issue. That was only related
to the use of RELAX NG with Jing in one certain part of the
validation. The error messages that Irrra is reporting are
not the same as that issues symptoms..

> > But I might have
> > both 5 and 6 installed on my machine. May it be the problem?
>
> No it is something different. I suspect there sneaked an illegal between
> body and p. Try the following (one line no spaces between the tags):
> ...
> <body><p>...</p><body>
>
> What does gives that?

No. As i reported yesterday, Irrra's document does
validate okay for me. There are no xml issues.

Irrra would you please respond to the question that
i asked yesterday.

I feel that we are wasting time here.

-David
Re: Problems with build [ In reply to ]
David,

The build was successful when I created a new directory, populated it with
"forrest seed' and copied my index.xml file to it. As soon as I tried to run
'forrest validate-xdocs' in the initial directory I got the all too familiar
error... May it be something outside the file? Skinconf.xml? Anything?


David Crossley wrote:
>
> Irrra wrote:
>>
>> I'm pretty sure I'm missing something simple. Below is the code from my
>> xml
>> file. It shows up properly when using 'forrest run'. When I'm trying to
>> run
>> 'forrest' however, I'm getting an error and I don't know what should I do
>> to
>> fix it. The erorr is:
>>
>> validate-xdocs:
>> C\Dosuments and Settings\...\index.xml: The content of element type
>> "body"
>> must match
>> "(section|p|source|note|warning|fixme|table|ol|ul|figure|anchor)+"
>>
>> BUILD FAILED
>> ...index.xml fis not a valid xml document.
>>
>>
>> Any insight will be very appreciated!
>>
>> The code:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>> <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
>> "http://forrest.apache.org/dtd/document-v20.dtd">
>> <document>
>> <header>
>> <title>Contact ViroGen</title>
>> </header>
>> <body>
>> <p class="center"> ../resources/images/about.jpg </p>
>> </body>
>> </document>
>
> I have no idea sorry. It looks legitimate to me.
> In fact i added your file to a test site and it
> does validate correctly here.
>
> Please try a seed-sample site ...
> cd my-new-directory
> forrest seed-sample
> forrest validate-xdocs
>
> Then add your file as src/documentation/content/xdocs/irrra-test.xml
> and try again:
> forrest validate-xdocs
>
> -David
>
>

--
View this message in context: http://www.nabble.com/Problems-with-build-tp19641019p19661319.html
Sent from the Apache Forrest - Users mailing list archive at Nabble.com.
Re: Problems with build [ In reply to ]
Thanks,

doesn't change anything. Still getting the error.

- Irina


Thorsten Scherler-3 wrote:
>
> On Wed, 2008-09-24 at 05:19 -0700, Irrra wrote:
>> Nope, it's JDK 5 the environment variable is referring to...
>
> Ok, since there is an open issue with the validation and JDK 6.
>
>> But I might have
>> both 5 and 6 installed on my machine. May it be the problem?
>
> No it is something different. I suspect there sneaked an illegal between
> body and p. Try the following (one line no spaces between the tags):
> ...
> <body><p>...</p><body>
>
> What does gives that?
>
> salu2
>>
>>
>>
>> Thorsten Scherler-3 wrote:
>> >
>> > On Tue, 2008-09-23 at 19:51 -0700, Irrra wrote:
>> >> Hi,
>> >>
>> >> I'm pretty sure I'm missing something simple. Below is the code from
>> my
>> >> xml
>> >> file. It shows up properly when using 'forrest run'. When I'm trying
>> to
>> >> run
>> >> 'forrest' however, I'm getting an error and I don't know what should I
>> do
>> >> to
>> >> fix it. The erorr is:
>> >>
>> >> validate-xdocs:
>> >> C\Dosuments and Settings\...\index.xml: The content of element type
>> >> "body"
>> >> must match
>> >> "(section|p|source|note|warning|fixme|table|ol|ul|figure|anchor)+"
>> >>
>> >> BUILD FAILED
>> >> ...index.xml fis not a valid xml document.
>> >>
>> >>
>> >> Any insight will be very appreciated!
>> >
>> > Are you using jdk6?
>> >
>> > salu2
>> >
>> >>
>> >> The code:
>> >>
>> >> <?xml version="1.0" encoding="UTF-8"?>
>> >>
>> >> <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
>> >> "http://forrest.apache.org/dtd/document-v20.dtd">
>> >> <document>
>> >> <header>
>> >> <title>Contact ViroGen</title>
>> >> </header>
>> >> <body>
>> >> <p class="center"> ../resources/images/about.jpg </p>
>> >> </body>
>> >> </document>
>> > --
>> > Thorsten Scherler
>> thorsten.at.apache.org
>> > Open Source Java consulting, training and
>> solutions
>> >
>> >
>> >
>>
> --
> Thorsten Scherler thorsten.at.apache.org
> Open Source Java consulting, training and solutions
>
>
>

--
View this message in context: http://www.nabble.com/Problems-with-build-tp19641019p19661341.html
Sent from the Apache Forrest - Users mailing list archive at Nabble.com.
Re: Problems with build [ In reply to ]
Please do not do top-posting like this. Rather add your
comments in-line with the context of the conversation.

Irrra wrote:
>
> The build was successful when I created a new directory, populated it with
> "forrest seed' and copied my index.xml file to it. As soon as I tried to run
> 'forrest validate-xdocs' in the initial directory I got the all too familiar
> error... May it be something outside the file? Skinconf.xml? Anything?

Please do that *without* adding your document. I want to
see what happens with a fresh forrest seed site. See below.

> David Crossley wrote:
> > Irrra wrote:
> >>
> >> I'm pretty sure I'm missing something simple. Below is the code from my
> >> xml
> >> file. It shows up properly when using 'forrest run'. When I'm trying to
> >> run
> >> 'forrest' however, I'm getting an error and I don't know what should I do
> >> to
> >> fix it. The erorr is:
> >>
> >> validate-xdocs:
> >> C\Dosuments and Settings\...\index.xml: The content of element type
> >> "body"
> >> must match
> >> "(section|p|source|note|warning|fixme|table|ol|ul|figure|anchor)+"
> >>
> >> BUILD FAILED
> >> ...index.xml fis not a valid xml document.
> >>
> >>
> >> Any insight will be very appreciated!
> >>
> >> The code:
> >>
> >> <?xml version="1.0" encoding="UTF-8"?>
> >>
> >> <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
> >> "http://forrest.apache.org/dtd/document-v20.dtd">
> >> <document>
> >> <header>
> >> <title>Contact ViroGen</title>
> >> </header>
> >> <body>
> >> <p class="center"> ../resources/images/about.jpg </p>
> >> </body>
> >> </document>
> >
> > I have no idea sorry. It looks legitimate to me.
> > In fact i added your file to a test site and it
> > does validate correctly here.
> >
> > Please try a seed-sample site ...
> > cd my-new-directory
> > forrest seed-sample
> > forrest validate-xdocs

This is what i mainly want to know.

-David

> > Then add your file as src/documentation/content/xdocs/irrra-test.xml
> > and try again:
> > forrest validate-xdocs
> >
> > -David
>
Re: Problems with build [ In reply to ]
David wrote:

> Please do that *without* adding your document. I want to
> see what happens with a fresh forrest seed site. See below.
...
> > Please try a seed-sample site ...
> > cd my-new-directory
> > forrest seed-sample
> > forrest validate-xdocs

> This is what i mainly want to know.

The build was successful both times.

- Irina
--
View this message in context: http://www.nabble.com/Problems-with-build-tp19641019p19661465.html
Sent from the Apache Forrest - Users mailing list archive at Nabble.com.
Re: Problems with build [ In reply to ]
Irrra wrote:
> David wrote:
> >
> > Please do that *without* adding your document. I want to
> > see what happens with a fresh forrest seed site. See below.
> ...
> > > Please try a seed-sample site ...
> > > cd my-new-directory
> > > forrest seed-sample
> > > forrest validate-xdocs
> >
> > This is what i mainly want to know.
>
> The build was successful both times.

Okay, that proves that there is nothing wrong with
your Forrest installation.

As i described earlier, i did copy-and-paste
of your xml into a new file on my system.
That passes xml validation with no problems.

So there must be some strange invisible character
in your copy of the document that trips up the
xml validation system.

I suggest that you create a complete new copy
of your test document. Also try copying one of the
existing documents in the "seed site" and remove
the content until just your single test paragraph
remains.

-David
Re: Problems with build [ In reply to ]
David Crossley wrote:
> Thorsten Scherler wrote:
> >
> > No it is something different. I suspect there sneaked an illegal between
> > body and p. Try the following (one line no spaces between the tags):
> > ...
> > <body><p>...</p><body>
> >
> > What does gives that?
>
> No. As i reported yesterday, Irrra's document does
> validate okay for me. There are no xml issues.

Sorry Thorsten. Those words came out wrong.
I was trying to steer back towards such issues
after getting Irrra to be sure that the xml validation
was actually working. See the other part of this
email thread.

Irrra, you replied to Thorsten's suggestion, saying
that it made no difference. Did you actually re-enter
that content as "<body><p>...</p></body>" or did
you just modify your existing bad document? In the
latter case the spurious characters might still remain.

-David

> Irrra would you please respond to the question that
> i asked yesterday.
>
> I feel that we are wasting time here.
>
> -David
Re: Problems with build [ In reply to ]
On Thu, 2008-09-25 at 12:11 +1000, David Crossley wrote:
> David Crossley wrote:
> > Thorsten Scherler wrote:
> > >
> > > No it is something different. I suspect there sneaked an illegal between
> > > body and p. Try the following (one line no spaces between the tags):
> > > ...
> > > <body><p>...</p><body>
> > >
> > > What does gives that?
> >
> > No. As i reported yesterday, Irrra's document does
> > validate okay for me. There are no xml issues.
>
> Sorry Thorsten. Those words came out wrong.

No worries, no offense taken.

Just wanted to point to the spurious characters as possible problem.
Since you are not using her exact document it does not surprise that it
is validating fine. She may want to add this doc to the issue tracker
then we could use this.

salu2
--
Thorsten Scherler thorsten.at.apache.org
Open Source Java consulting, training and solutions