Re: Show text file with Forrest

2007-07-22 Thread David Crossley
Thorsten Scherler wrote:
> Juan Carlos Fernandez Caballero wrote:
> > 
> > A have a problem with Forrest. A need show (load) a text file.
> 
> You mean you want to use a text file as input?
> 
> >  I could to paste the text in a image and use:
> > 
> > 
> 
> Meaning you want to display the whole text file as image?
> 
> > I believe that this is not the orthodox way but to do it. Can I use
> > the text file of direct way?
> 
> Yeah, there is.
> 
> If you use POD format then you can use
> http://www.rblasch.org/projects/pod-input/.
> 
> Otherwise it should be easy to write an input plugin for text. 
> 
> Do you have an example file?

Juan, as you can see in this thread, Brolin has explained
that you can use xi:include and Thorsten has mentioned
some other techniques.

There is another option: Use "ASCII Art" to automatically
generate an image from text.

Add a file xdocs/text.aart

Add an image link to your xdoc source:
  
   Text: 
  

It would only be suitable for small snippets of text,
but this technique might be useful in some circumstances.

-David


Re: Show text file with Forrest

2007-07-22 Thread David Crossley
It got it working. See comments at
https://issues.apache.org/jira/browse/FOR-1032

The main changes were to use an xml entity to
declare the xmlns:xi attribute in the DTD and to
use the "cocoon:" protocol for the xi:include href.

There are some other changes, so see FOR-1032.

-David


Re: Re: why failed when i "forrest war" after "forrest seed-business"?

2007-07-22 Thread Thorsten Scherler
On Sun, 2007-07-22 at 13:41 +0800, brossir wrote:
> Thanks for reply! i am from China, hope that you can read my English! 
>  
> Indeed, i did download the apache-forrest-0.8 (both .gz and .zip) last
> week, 
> and i tried the "forrest seed" and "forrest seed-business" firstly, 
> then "forrest war" or "forrest site" in ONE Redhat Enterprise Linux
> and TWO Windows XP Professional system, 
> every times i got the same problem.
>  
> by the way, the "forrest run" was fine,  but i want to run Forrest in
> Tomcat, so i need a webapp.
>  
> and, i never change any Forrest files.

Are you using Java 6?

Forrest is not compatible with it (I can remember there is an issue but
jira is down ATM).

Please try with 1.5.

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