You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Jeff Turner <je...@apache.org> on 2002/11/08 06:23:42 UTC

Adding new content types (Re: Forrestize Phoenix)

On Thu, Nov 07, 2002 at 03:41:58PM +0100, Nicola Ken Barozzi wrote:
[from an avalon-dev thread]
...
> And finally the latest tigris skin stuff:
> 
> http://style.tigris.org/nonav/dev/docs/sampler_inst.html

Woo.. very nice.

I think in Forrest we're not really presenting a compelling case for
separating content and presentation.  It would be great if we could, say,
colourise code by language with <source type="java">, or XML, as done at:

http://www.orbeon.com/oxf/doc/intro-examples

Or be able to describe directory hierarchies with:

<dirstruct>
  <dir name="/">
    Root directory
    <dir name="lib">
      Contains jars
    </dir>
    <dir name="src">
      Source files
      <file name="manifest">
        Jar manifest
      </file>
    </dir>
  </dir>
<dirstruct>

and have it print a nice hierarchy as on the tigris page.

Forrest really needs to make adding project-specific elements easy..
eg:

1) author a schema addition in dead simple RNG compact format:

start =         dirstruct
dirstruct =     element dirstruct {
                    (file | dir)*
                }
dir =           element dir {
                    attribute name {fsName},
                    text?,
                    (dir | file)*
                }
file =          element file {
                    attribute name {fsName},
                    text
                }
fsName =        xsd:string { minLength = "1" }

2) Depending on skin, create a CSS or XSLT definition to render the
new element.
3) Drop these in a special directory, say src/documentation/skinconf/,
and Forrest does the rest.


Just random thoughts..


--Jeff

Re: Adding new content types (Re: Forrestize Phoenix)

Posted by Nicola Ken Barozzi <ni...@apache.org>.
Jeff Turner wrote:
> On Fri, Nov 08, 2002 at 04:34:34PM +1100, Peter Donald wrote:
> 
>>On Fri, 8 Nov 2002 16:23, Jeff Turner wrote:
>>
>>>On Thu, Nov 07, 2002 at 03:41:58PM +0100, Nicola Ken Barozzi wrote:
>>>[from an avalon-dev thread]
>>>...
>>>
>>>
>>>>And finally the latest tigris skin stuff:
>>>>
>>>>http://style.tigris.org/nonav/dev/docs/sampler_inst.html
>>>
>>>Woo.. very nice.
>>>
>>>I think in Forrest we're not really presenting a compelling case for
>>>separating content and presentation.  It would be great if we could, say,
>>>colourise code by language with <source type="java">, or XML, as done at:
>>>
>>>http://www.orbeon.com/oxf/doc/intro-examples

The chaperon parser can do it, and it's part of my commit for the 
wiki-like editing.
We can hardcode XML and Java in for now and move it to be pluggable 
later on.

>>kool - and while you are at it I would LOVE to see something like
>>
>><link 
>>href="javadoc:org.apache.avalon.framework.ExceptionUtil#printStackTrace"/>
> 
> 
> Yes, it's somewhere near the top of the todo list.  Mine anyway.. I have
> a site needing this.

Cool :-)

It's still about enabling "mounting" pre-generated content in the 
Forrest URI space, no?

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Re: Adding new content types (Re: Forrestize Phoenix)

Posted by Jeff Turner <je...@apache.org>.
On Fri, Nov 08, 2002 at 04:34:34PM +1100, Peter Donald wrote:
> On Fri, 8 Nov 2002 16:23, Jeff Turner wrote:
> > On Thu, Nov 07, 2002 at 03:41:58PM +0100, Nicola Ken Barozzi wrote:
> > [from an avalon-dev thread]
> > ...
> >
> > > And finally the latest tigris skin stuff:
> > >
> > > http://style.tigris.org/nonav/dev/docs/sampler_inst.html
> >
> > Woo.. very nice.
> >
> > I think in Forrest we're not really presenting a compelling case for
> > separating content and presentation.  It would be great if we could, say,
> > colourise code by language with <source type="java">, or XML, as done at:
> >
> > http://www.orbeon.com/oxf/doc/intro-examples
> 
> kool - and while you are at it I would LOVE to see something like
> 
> <link 
> href="javadoc:org.apache.avalon.framework.ExceptionUtil#printStackTrace"/>

Yes, it's somewhere near the top of the todo list.  Mine anyway.. I have
a site needing this.

--Jeff

Re: Adding new content types (Re: Forrestize Phoenix)

Posted by Peter Donald <pe...@apache.org>.
On Fri, 8 Nov 2002 16:23, Jeff Turner wrote:
> On Thu, Nov 07, 2002 at 03:41:58PM +0100, Nicola Ken Barozzi wrote:
> [from an avalon-dev thread]
> ...
>
> > And finally the latest tigris skin stuff:
> >
> > http://style.tigris.org/nonav/dev/docs/sampler_inst.html
>
> Woo.. very nice.
>
> I think in Forrest we're not really presenting a compelling case for
> separating content and presentation.  It would be great if we could, say,
> colourise code by language with <source type="java">, or XML, as done at:
>
> http://www.orbeon.com/oxf/doc/intro-examples

kool - and while you are at it I would LOVE to see something like

<link 
href="javadoc:org.apache.avalon.framework.ExceptionUtil#printStackTrace"/>

or similar work. 

You would need to add configuration like

<packages>
  <packagelist base="http://jakarta.apache.org/avalon/framework/api"
               file="avalon-package-list"/>
  <packagelist base="http://java.sun.com/jdk1.4.1/docs/api"
               file="jdk-package-list"/>
</packages>

-- 
Cheers,

Peter Donald
*------------------------------------------------------*
| "Religion is what the common people see as true, the |
| wise people see as false, and the rulers see as      |
| useful" --Seneca                                     |
*------------------------------------------------------*