You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Richard Cao <ri...@ca.ibm.com> on 2003/11/10 22:37:56 UTC

problem generating faqs




Hi,

I'm having problems generating faqs on my site. The generated html page has
the header, footer and menu; everything but the actual content. I thought
it could be something with my xml file, so I copied the faq sample into my
webpage, and the same thing happened when I generated the site; the faq
page had no content.

I checked the output from the 'forrest site' more carefully, and noticed
the following

...
Index Directory:
C:\cygwin\home\richcao\forrest_xalan\build\webapp\lucene-index
...
Indexing ... faq_sample.xml [Ignored]
Indexing ... index.xml [Done]
Indexing ... site.xml [Ignored]
Indexing ... tabs.xml [Ignored]
Indexing ... xalan\builds.xml [Done]
Indexing ... xalan\commandline.xml [Done]
Indexing ... xalan\commandline_xsltc.xml [Done]
Indexing ... xalan\downloads.xml [Done]
...
* [37/0]     0.661s 11.6Kb  faq_sample.html
...

So I figured it was because the faq_sample.xml was being "Ignored". Anyone
know why it's being ignored and how I can fix it? I also tried running
forrest seed and forrest site in a fresh directory, and the faq there gets
generated properly.

Thanks,

Richard Cao


Re: problem generating faqs

Posted by David Crossley <cr...@indexgeo.com.au>.
Richard Cao wrote:
>
> I'm having problems generating faqs on my site. The generated html page has
> the header, footer and menu; everything but the actual content. I thought
> it could be something with my xml file, so I copied the faq sample into my
> webpage, and the same thing happened when I generated the site; the faq
> page had no content.
> 
> I checked the output from the 'forrest site' more carefully, and noticed
> the following

:-) Then check a bit more carefully. Those are messages
from the the Lucene search system. I do agree that the build
messages are confusing. This is one thing that we must improve.

> ...
> Index Directory:
> C:\cygwin\home\richcao\forrest_xalan\build\webapp\lucene-index
> ...
> Indexing ... faq_sample.xml [Ignored]
> Indexing ... index.xml [Done]
> Indexing ... site.xml [Ignored]
> Indexing ... tabs.xml [Ignored]
> Indexing ... xalan\builds.xml [Done]
> Indexing ... xalan\commandline.xml [Done]
> Indexing ... xalan\commandline_xsltc.xml [Done]
> Indexing ... xalan\downloads.xml [Done

The following is the message from Cocoon. It did build the page,
but not in the way that you expected.

> * [37/0]     0.661s 11.6Kb  faq_sample.html
> ...
> 
> So I figured it was because the faq_sample.xml was being "Ignored". Anyone
> know why it's being ignored and how I can fix it?

The main sitemap.xmap has this match:
   <map:match pattern="**faq.xml">

So your FAQ source xml instance needs to have a filename that *ends*
with "*faq.xml"

> I also tried running
> forrest seed and forrest site in a fresh directory, and the faq there gets
> generated properly.

That is because its URI matches the correct syntax for default FAQ
treatment.

--David