You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Howard Moore <Ho...@borland.com> on 2004/07/24 00:40:20 UTC

Forrest inside cocoon app anyone?

Any tips to get forrest working inside an existing cocoon application?


I've got some web applications living under tomcat/webapps/cocoon/myapp


I would like to add my forrest docs to that application but the
generated site does not work correctly, ( I think the skins might be at
fault) and I want to INCLUDE the doc in the web app not create a
separate web application for them.




Has anyone actually used forrest to document a cocoon application?




Re: forrest patch (was: sDocBook ...)

Posted by Thorsten Scherler <th...@juntadeandalucia.es>.
Johannes Schäfer wrote:

>
>What will I do then? Open an issue and attach the file?
>js
>  
>

Jupp!
100% right ;-)

thorsten


RE: forrest patch (was: sDocBook ...)

Posted by Johannes Schäfer <jo...@uidesign.de>.

> -----Original Message-----
> From: David Crossley [mailto:crossley@apache.org] 
> 
> David Crossley wrote:
> > Johannes Schäfer wrote:
> > > Hi!
> > > How do I suggest/create a "forrest patch"?
> > > Johannes
> > 
> > Edit the stylesheets in your local distribution of
> > Forrest. Keep testing until it does what you want.
> > 
> > Then run the command 'forrest patch'. It will prepare
> > a file containing the differences that you have added.
> 
> Sorry, i meant 'build patch' in the top-level forrest directory.
> --David
> 
> > Some tips ...
> > 
> > * Make sure that your forrest SVN working copy
> > is up-to-date.
> > 
> > * Keep the same text indentation as in the files that
> > you are working on.
> > 
> > * Make sure that your xml files and stylesheets are
> > valid xml.

What will I do then? Open an issue and attach the file?
js


Re: forrest patch (was: sDocBook ...)

Posted by David Crossley <cr...@apache.org>.
David Crossley wrote:
> Johannes Schäfer wrote:
> > Hi!
> > How do I suggest/create a "forrest patch"?
> > Johannes
> 
> Edit the stylesheets in your local distribution of
> Forrest. Keep testing until it does what you want.
> 
> Then run the command 'forrest patch'. It will prepare
> a file containing the differences that you have added.

Sorry, i meant 'build patch' in the top-level forrest directory.
--David

> Some tips ...
> 
> * Make sure that your forrest SVN working copy
> is up-to-date.
> 
> * Keep the same text indentation as in the files that
> you are working on.
> 
> * Make sure that your xml files and stylesheets are
> valid xml.


Re: forrest patch (was: sDocBook ...)

Posted by David Crossley <cr...@apache.org>.
Johannes Schäfer wrote:
> Hi!
> How do I suggest/create a "forrest patch"?
> Johannes

Edit the stylesheets in your local distribution of
Forrest. Keep testing until it does what you want.

Then run the command 'forrest patch'. It will prepare
a file containing the differences that you have added.

Some tips ...

* Make sure that your forrest SVN working copy
is up-to-date.

* Keep the same text indentation as in the files that
you are working on.

* Make sure that your xml files and stylesheets are
valid xml.

-- 
David Crossley


forrest patch (was: sDocBook ...)

Posted by Johannes Schäfer <jo...@uidesign.de>.
Hi!
How do I suggest/create a "forrest patch"?
Johannes

> -----Original Message-----
> From: Juan Jose Pablos [mailto:cheche@che-che.com] 

<snip>

> 
> You can use a "forrest patch" to create a patch so we can 
> added to the 
> distribution more easily.
> 
> I think that the best approach is to come with the docbook source and 
> the html output that you would like to output. This way we could find 
> the best way to implement it..
> 
> WDYT?
> 
> Cheers,
> Cheche
> 

-- 
User Interface Design GmbH * Teinacher Str. 38 * D-71634 Ludwigsburg
Fon +49 (0)7141 377 000 * Fax  +49 (0)7141 377 00-99
Geschäftsstelle: User Interface Design GmbH * Lehrer-Götz-Weg 11 * D-81825
München
www.uidesign.de


Re: sDocBook ...

Posted by Johannes Schaefer <jo...@uidesign.de>.
Hi!
I put a fix for this into the issue tracker,
see FOR-236.
js




Johannes Schäfer wrote:

>> -----Original Message-----
>> From: Juan Jose Pablos [mailto:cheche@che-che.com]
>> Johannes Schäfer escribió:
>> > Hi!
>> > sDockBook allows a <title> within a <note>. > The code below shows 
>> what I've come up with
>> > (in common/.../document2html).
>> > > We use it like this:
>> > <note>
>> >   <title>: Title for this note</title>
>> >   ...
>> > </note>
>> > The ":" is needed since I don't know > how to put this into XSL:
>> >   if( title ) ": ".title > or even without the "Note".
>> > 
> 
> 
>> I think that the best approach is to come with the docbook source and 
>> the html output that you would like to output. This way we could find 
>> the best way to implement it..
> 
> 
> Have you seen the "code below" that I've
> put into document2html.xsl? Meant: "at the end of the mail" ... here it 
> is again:
> 
>  <xsl:template match="note | warning | fixme">
>    <xsl:apply-templates select="@id"/>
>    <div class="frame {local-name()}">
>      <div class="label">
>        <xsl:choose>
>          <xsl:when test="@label"><xsl:value-of select="@label"/></xsl:when>
>          <xsl:when test="local-name() = 'note'">Note<!-- js 
> --><xsl:value-of select="title"/>
>           </xsl:when>
>          <xsl:when test="local-name() = 'warning'">Warning</xsl:when>
>          <xsl:otherwise>Fixme (<xsl:value-of
> select="@author"/>)</xsl:otherwise>
>        </xsl:choose>
>      </div>
>      <div class="content">
>        <xsl:apply-templates/>
>      </div>
>    </div>
>  </xsl:template>
> 
> So, I have a solution but not a perfect one.
> Better would be either to have a "Note: "+title   or even just the title 
> with the corresponding
> blue bars and the info-icon. This would involve
> checking if there is a <title> present and I
> don't know how to do this. If there's no title
> simply "Note" may be used/displayed (as is now).
> 
> Cheers,
> Johannes
> 
> 



-- 
User Interface Design GmbH * Teinacher Str. 38 * D-71634 Ludwigsburg
Fon +49 (0)7141 377 000 * Fax  +49 (0)7141 377 00-99
Geschäftsstelle: User Interface Design GmbH * Lehrer-Götz-Weg 11 * 
D-81825 München
www.uidesign.de

Buch "User Interface Tuning" von Joachim Machate & Michael Burmester
www.user-interface-tuning.de

Attraktivität von interaktiven Produkten messen mit
www.attrakdiff.de

RE: sDocBook ...

Posted by Johannes Schäfer <jo...@uidesign.de>.
> -----Original Message-----
> From: Juan Jose Pablos [mailto:cheche@che-che.com] 
> 
> Johannes Schäfer escribió:
> > Hi!
> > sDockBook allows a <title> within a <note>. 
> > The code below shows what I've come up with
> > (in common/.../document2html).
> > 
> > We use it like this:
> > <note>
> >   <title>: Title for this note</title>
> >   ...
> > </note>
> > The ":" is needed since I don't know 
> > how to put this into XSL:
> >   if( title ) ": ".title 
> > or even without the "Note".
> > 

> I think that the best approach is to come with the docbook source and 
> the html output that you would like to output. This way we could find 
> the best way to implement it..

Have you seen the "code below" that I've
put into document2html.xsl? Meant: "at the 
end of the mail" ... here it is again:

  <xsl:template match="note | warning | fixme">
    <xsl:apply-templates select="@id"/>
    <div class="frame {local-name()}">
      <div class="label">
        <xsl:choose>
          <xsl:when test="@label"><xsl:value-of select="@label"/></xsl:when>
          <xsl:when test="local-name() = 'note'">Note<!-- 
js --><xsl:value-of select="title"/>
		  </xsl:when>
          <xsl:when test="local-name() = 'warning'">Warning</xsl:when>
          <xsl:otherwise>Fixme (<xsl:value-of
select="@author"/>)</xsl:otherwise>
        </xsl:choose>
      </div>
      <div class="content">
        <xsl:apply-templates/>
      </div>
    </div>
  </xsl:template>

So, I have a solution but not a perfect one.
Better would be either to have a "Note: "+title   
or even just the title with the corresponding
blue bars and the info-icon. This would involve
checking if there is a <title> present and I
don't know how to do this. If there's no title
simply "Note" may be used/displayed (as is now).

Cheers,
Johannes


-- 
User Interface Design GmbH * Teinacher Str. 38 * D-71634 Ludwigsburg
Fon +49 (0)7141 377 000 * Fax  +49 (0)7141 377 00-99
Geschäftsstelle: User Interface Design GmbH * Lehrer-Götz-Weg 11 * D-81825
München
www.uidesign.de



Re: sDocBook ...

Posted by Juan Jose Pablos <ch...@che-che.com>.
Johannes Schäfer escribió:
> Hi!
> sDockBook allows a <title> within a <note>. 
> The code below shows what I've come up with
> (in common/.../document2html).
> 
> We use it like this:
> <note>
>   <title>: Title for this note</title>
>   ...
> </note>
> The ":" is needed since I don't know 
> how to put this into XSL:
>   if( title ) ": ".title 
> or even without the "Note".
> 
> Anybody may help?
> Should I open an issue for this?


You can use a "forrest patch" to create a patch so we can added to the 
distribution more easily.

I think that the best approach is to come with the docbook source and 
the html output that you would like to output. This way we could find 
the best way to implement it..

WDYT?

Cheers,
Cheche

Re: no lucene search: document-v13.xml missing

Posted by David Crossley <cr...@apache.org>.
Johannes Schaefer wrote:
> Trying to get lucene search working I get
> an error like this:
> 
> Request URI
>    lucene-update.html
> cause
>    java.lang.RuntimeException:
>    org.apache.cocoon.ResourceNotFoundException: Resource not found.:
>    org.apache.excalibur.source.SourceNotFoundException:
>    file:/D:/forrest/src/docume...tent/xdocs/docs/document-v13.xml
>    doesn't exist.
> 
> When will there be the document-v13.xml?

Creating that demonstration document was another job to be done.
That is done today. However it does not fix this Lucene issue,
as it now goes on to complain about some other document which
definitely should not exist. Created issue FOR-246.

Thanks for reporting both that Lucene issue and the bonus
missing demo doc.

-- 
David Crossley


no lucene search: document-v13.xml missing

Posted by Johannes Schaefer <jo...@uidesign.de>.
Hi!
Trying to get lucene search working I get
an error like this:

Request URI
   lucene-update.html
cause
   java.lang.RuntimeException:
   org.apache.cocoon.ResourceNotFoundException: Resource not found.:
   org.apache.excalibur.source.SourceNotFoundException:
   file:/D:/forrest/src/docume...tent/xdocs/docs/document-v13.xml
   doesn't exist.

When will there be the document-v13.xml?

Cheers
Johannes


-- 
User Interface Design GmbH * Teinacher Str. 38 * D-71634 Ludwigsburg
Fon +49 (0)7141 377 000 * Fax  +49 (0)7141 377 00-99
Geschäftsstelle: User Interface Design GmbH * Lehrer-Götz-Weg 11 * 
D-81825 München
www.uidesign.de

sDocBook ...

Posted by Johannes Schäfer <jo...@uidesign.de>.
Hi!
sDockBook allows a <title> within a <note>. 
The code below shows what I've come up with
(in common/.../document2html).

We use it like this:
<note>
  <title>: Title for this note</title>
  ...
</note>
The ":" is needed since I don't know 
how to put this into XSL:
  if( title ) ": ".title 
or even without the "Note".

Anybody may help?
Should I open an issue for this?

Cheers 
Johannes

  <xsl:template match="note | warning | fixme">
    <xsl:apply-templates select="@id"/>
    <div class="frame {local-name()}">
      <div class="label">
        <xsl:choose>
          <xsl:when test="@label"><xsl:value-of select="@label"/></xsl:when>
          <xsl:when test="local-name() = 'note'">Note<!-- 
js --><xsl:value-of select="title"/>
		  </xsl:when>
          <xsl:when test="local-name() = 'warning'">Warning</xsl:when>
          <xsl:otherwise>Fixme (<xsl:value-of
select="@author"/>)</xsl:otherwise>
        </xsl:choose>
      </div>
      <div class="content">
        <xsl:apply-templates/>
      </div>
    </div>
  </xsl:template>

-- 
User Interface Design GmbH * Teinacher Str. 38 * D-71634 Ludwigsburg
Fon +49 (0)7141 377 000 * Fax  +49 (0)7141 377 00-99
Geschäftsstelle: User Interface Design GmbH * Lehrer-Götz-Weg 11 * D-81825
München
www.uidesign.de