This is *my* interpretation of the talks we have had (or at least the
ones I was a part of), it does not necessarily represent the views of
other devs, nor is it necessarily complete.

We tried to include the views of devs not present (where they had been
outlined on the list prior to ApacheCon), sorry if we missed anything
important to you, but fear not, full discussion will proceed when the
conference is over and we have all travelled home.

The intention of this mail is to give those not present at the various
discussions a chance to consider the issues raised. Note that, in many
cases this includes people who were at Apachecon as well as those who
couldn't make it. Each issue will be discussed in detail when all devs
are back at home, there are alot of issues here, then there are all the
discussions I was not a part of, so lets not discuss them all at once,
priority number one should be the roadmap (see last issue in this mail).

WARNING: This mail covers many areas, please do not start discussion in
reply to this mail. Treat it as an overview document only. If you want
to discuss a particular issue we need to start a more focussed thread
for that issue.

VIEWS
=====

We have, in the main, agreed that Views are the step forward that
Forrest needs. Thorsten gave a great overview talk the other night and
this proved to be very helpful in understanding exactly how the views
system works.

I say we are agreed "in the main" because there are still some design
issues that need resolving. As Thorsten has always maintained the
current views implementation should be regarded as a proof of concept
implementation that shows the technique is sound.


Deciding what view to use
=========================

Currently we which view to use when responding to a request is dependant
on the location of the source file and/or the request URL (note that
with the introduction of the Locationmap we can no longer assume that
the location of the file has any direct relation to the requested URL).
It was suggested that deciding wich view to use based on the source
documents doctype would be an even more powerful method of resolving the
view.

Packaging of Views and Themes
-----------------------------

We talked a little about how to package views. It was generally felt
that, once the design is stable, views should go into core. There seemed
to also be a recognition of the need to make contracts reusable across
multiple views by packaging them separately (there was even some talk of
enabling view ineritance, although this was not discussed at lengh).
Finally, themes were felt to be independant of both views and contracts.

Thorsten stated that there is a developiing naming convention tht can be
used for the structure of the page to facilitate this level of reuse
between views and themes.

Finally, something that was never discussed but I am adding here so I
don't forget it. I would like to explore being able to utilise the
current extra-css in skinconf to extend CSS in packaged themes.

Configuration of Views
----------------------

Some devs felt (including Duwaker who was not present in Apachecon) that
there are simply too many config files for views. Thorsten said there
are some problems doing this with the current implmentation. We
therefore need to explore this on list to ensure that all devs who have
experiece of working with views can contribute. We did come up with some
ideas, but they should be expanded in another thread.

Scope of Views
--------------

Not discussed at ApacheCon is Diwaker's question as to whether views are
applicable to other output formats such as text and PDF. His observation
is things like menu's and tabs are not relevant in those formats.
However, my own personal feeling is that many contracts are relevant in
these formats, especialy those that add content nuggets.

Furthermore, the ability to alter the layout of a text rendering, for
example, is equally as important as the ability to alter the format of
an HTML page. For example, consider the situation where we have an
executive summary view and a full document view.

Scope of Themes
---------------

Our current skinning system does not allow the skinning of formats other
than PDF and HTML. Themes resolve this shortcoming. Diwaker wondered
what a theme for a text document would look like. I would suggest it
would be things like line wrapping, representation of each heading
level, link presentation and image handling.

However, this raises a question. How do we add a theme to a document
such as a text document or a PDF? I think the answer is that we will
have to provide a rendering engine that interprets the theme definition
and renders the documnet. Fortunately, we already have these rendering
engines, they are called output plugins :-)

For example:


                                          theme
                                            |
                                           \|/
OOo -> OOo plugin -> core (views) -> text plugin -> text
                      |        /|\
                     \|/        |
                   forrest:contracts




Reusing Cocoon Portal Engine
----------------------------

A couple of the Forrest devs attended a talk on the Cocoon Portal engine
and came away feeling that we should explore leveraging *parts* of this
engine in the views implementation. I can see there are a few strong
cases for this, the most significant are:

(NOTE: I did not attend the presentation but I have said a few times
that we should look at the Cocoon Portal, so I have some sypathies with
this perspective):

- The portal engine does what Views is intended to do. It adds more than
views needs (such as authentication), but since it is modular we should
be able to reuse what we need.

- The technique for configuring the portal (or view) has been developed
over a period of time and is in use on some excellent sites. In fact the
config stuff is one of the major things that changed in the second
release of the portal code. In other words, it is more mature.

This was not discussed at the views workshop, and so the implications
have not been fully explored. This will require some considerable thought.

----------------------------------------------------------------------

Configuration of Forrest
========================

Forrest's config files, as they stand have reached the end of their
useful life. We are now limited in what we can do and views are making
many of them redundant anyway. It is therefore proposed that we take
this opportunity to simplify the config system.

We had a design discussion about this and you can find Nicola's notes in
SVN (see the hackathon directory in the etc directory of trunk). Together with the audio of our dicsussions (thanks David) Someone needs to summarise this discussion (Anil has stepped up to the plate on this one).

NOTE: For any users thinking ("oh no, the next forrest will be hard to upgrade because of fundamental changes in the way it is configured", don't worry. We will (most likely) provide tools to facilitate this upgrade, we will need them ourselves anyway).

----------------------------------------------------------------------

I18N
====

There is a problem with the current I18N support for content. At present
it is the responsability of the plugin designer to ensure their plugins
are I18N compliant. At present none of them are and so only XDocs
rendered in HTML will work in an I18N site.

Cheche and I looked at this. What we wanted to do was make it the
responsabillity of core to manage the I18N stuff. We think we may have a
solution using locationmaps, but it reqruies a little work on the
Locationmap code. Basically, instead of using the I18N generator from
Cocoon to resolve the source we would use the locationmap to resolve the
correct source file. For example:

<match match="**.xml">
  <location src="http://domain.{request:lang}/{1}.xml"/>
  <location src="http://domain.com/{1}.xml"/>
  <location src="{1}.xml"/>
</locator>

In the above example we will first try and get a language with the
relevant lang defined in the request from the relevant server. If that
fails we will try and get an English version and if that fails then we
fall back to an undefined language on the local machine. Of course, all
the files could be local anad locations would be something like:

  <location src="{1}.{request:lang}.xml"/>

Our thinking is to make this the defailt behaviour of the locationmap
resolution. In other words it would not be necessary to define this
mechanism for all matches in the locationmap. Only if you want to define
an alternative to the default behavioir defined in the locationmap. For
example, consider a default i18n search pattern of:

<i18n enabled="true">
  <location src="{source}.{request:lang}.{extension}"/>
  <location src="{source}.en.{extension}"/>
</i18n>

Now a request for index.xml will search of "index.{request:lang}.xml",
if that fails then we try "index.en.xml". If we later add te following
match to the locationmap we will change the search pattern for files in
the "docs" URL space to look on a specific remote server (note the
i18n="override" attribute):

<match match="docs/**.xml" i18n="override">
  <choose>
    <if test="{request:lang} = 'en'">
      <location src="docs/{1}.xml"/>
    </if>
    <else>
      <location src="http://domain.{request:lang}/docs/{1}.xml"/>
    </else>
  </choose>
</match>

In order to optimise perfrmane in none I18N sites we do:

<i18n enabled="false"/>

--- Alternative solution ---

We could just consider making the i18n generator the default generator, what are the implications of this?


Switch to XHTML2
================

We didn't really discuss this... still needs to be planned. We have agreed in principle that we make the move whilst restructuring for forrest:views. The question is how?

----------------------------------------------------------------------

PLUGINS
=======

Plugins as Blocks
-----------------

The Cocoon folk gave us an overview of the forthcoming Blocks implementation in Cocoon. This basically allows new functionlaity to be loaded into Cocoon quickly and easily. There is audio of their presentation and our subsequent questions in SVN.

I think our current plan is to watch closely as the Cocoon folk get things going and to start experimenting as soon as the itch gets strong enough.

-------------------------------------------------------------------------

Forrest Roadmap
===============

We discussed a roadmap, Nicola (or was it David) took some notes on it. Hopefullly he has read this far and still has the scraps of paper. Otherwise we need to recreate it here.

-----------------------------------------------------------------------

OK, that's all I can remember now. There was loads more, I'm sure it will come out over the next few months.

I hope this summary document is useful and not a waste of my time (i.e. has anyone read and understood it?)

Ross

Reply via email to