forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <>
Subject Re: Impossible to integrate PDF documents in forrest site?
Date Sat, 24 Aug 2002 10:22:02 GMT
Jeff Turner wrote:
> On Thu, Aug 22, 2002 at 05:30:48PM +0200, Marc Portier wrote:
>>>-----Original Message-----
>>>From: Nicola Ken Barozzi []
>>>>  myfile.pipeline.extension
>>>>I like it.
>>>Expanding a bit on this:
>>>We can dictate that every file in the contents can
>>>have a double extension.
>>there was even mentioning of more then two at the moment the idea
>>got me going ....
>>Next to that I don't see why there would be no room for something
>>Looking at it from this angle the multiple parts of the new
>>extension become like a route or a trail describing how to
>>get from *.metric.xml to jpg via svg. (Supposing there could
>>be more then one route)
> Back in Cocoon 1 days, each XML file had processing instructions at the
> top, telling Cocoon what series of transformations to apply to it, and
> what it's final content type should be:
> <?cocoon-process type="xsp"?>
> <?cocoon-format type="text/html"?>
> With Cocoon 2, the whole idea of the sitemap was to get rid of this, and
> have a single point of control.

Not really.
The idea is getting rid og the *reaction* that this provides, ie the 
fact that a PI is used to generate something that has a PI that is used 
to generate something etc...

> Now the idea of having 'myfile.pipeline.extension' seems identical to
> PIs, only not as clean. It takes control away from the sitemap.
> Subversion of control.

No, the sitemap is still the only whay of defining the pipelines.

Are already taking some control away from the sitemap when we use 

No, since the goal of the sitemap is to assemble pipelines, and to 
select which pipeline to apply given some rules.
myfile.pipeline.extension is just another rule.

If one day I decide to change what the pipeline does, I can do it from 
the sitemap without touching the files, hence the sitemap is definately 
in control.

> Or have I missed something? What's wrong with a simple action that checks
> of a PDF exists?

It does only one check.
Of course, we can continue to check with some rules till we find the 
first available file, but it's not really different given that this file 
has to be recognizable, maybe with an extension.

The most right thing to do would seem to be to check the contents of the 
file to understand the MIME/TYPE, but also this is too little, because 
it maps MIME/TYPE<->pipeline.

The fact is that the author *must* tell the pipeline about its stuff, as 
it uses tags in the document instead of plain text.
The important thing is that it does it with generic semantics.

>>>The output of Forrest will never show the internal
>>>extension, it's only
>>>a hint to the pipelines about the content of the file.

But it can still remain as a semantical piece of info, now that I think 
of it.

Nicola Ken Barozzi         
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)

View raw message