You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Ross Burton <ro...@mail.com> on 2000/09/19 15:42:49 UTC

RE: [C2] Merging pipelines into a new pipeline

 >If I could do something like: 
 > <xsl:apply-templates
select="document('cocoon://pipe1.xml')/group/*"/> 
 > <xsl:apply-templates
select="document('cocoon://pipe2.xml')/group/*"/> 

What you are saying is could we create a new URI scheme, cocoon: , which
access files through the sitemap engine.
 
Why not? We were going to write a really cool URL handler at some point
anyway (for jar: cvs: class: nfs: etc), is it possible to write a new
URL Resolver to plug into Xalan/Xerces so that XSL files can access
files via these new URL schemes?

Ross Burton 


Re: [C2] Merging pipelines into a new pipeline

Posted by Giacomo Pati <Gi...@pwr.ch>.
Peter Donald wrote:
> 
> At 12:56  20/9/00 +0200, you wrote:
> >Stay tuned for a RT coming soon...
> 
> What is a RT I must ask ? I seen it a few times and each time went WTF ?

Random Thoughts

Giacomo

-- 
PWR GmbH, Organisation & Entwicklung      Tel:   +41 (0)1  856 2202
Giacomo Pati, CTO/CEO                     Fax:   +41 (0)1  856 2201
Hintereichenstrasse 7                     Mobil: +41 (0)78 759 7703
CH-8166 Niederweningen                    Mailto:Giacomo.Pati@pwr.ch
                                          Web:   http://www.pwr.ch

Re: [C2] Merging pipelines into a new pipeline

Posted by Donald Ball <ba...@webslingerZ.com>.
On Thu, 21 Sep 2000, Peter Donald wrote:

> At 12:56  20/9/00 +0200, you wrote:
> >Stay tuned for a RT coming soon...
> 
> What is a RT I must ask ? I seen it a few times and each time went WTF ?

Random Thought. or, as i like to think of them, Rambling Thoughts.
(stefano and some others of us like to think deep thoughts aloud from time
to time).

- donald


Re: [C2] Merging pipelines into a new pipeline

Posted by Peter Donald <do...@mad.scientist.com>.
At 12:56  20/9/00 +0200, you wrote:
>Stay tuned for a RT coming soon...

What is a RT I must ask ? I seen it a few times and each time went WTF ?

Cheers,

Pete

*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power."          |
|       -Abraham Lincoln                               |
*------------------------------------------------------*

Re: [C2] Merging pipelines into a new pipeline

Posted by Stefano Mazzocchi <st...@apache.org>.
Paul Russell wrote:
> 
> On Tue, Sep 19, 2000 at 01:42:49PM +0000, Ross Burton wrote:
> > Why not? We were going to write a really cool URL handler at some point
> > anyway (for jar: cvs: class: nfs: etc), is it possible to write a new
> > URL Resolver to plug into Xalan/Xerces so that XSL files can access
> > files via these new URL schemes?
> 
> Ideally, it would make sense for it to be implemented as a
> URLStreamHandler, but there is a slight, uh, oddity in the java
> API for such things - you can only specify a URLStreamHandlerFactory
> once per VM (which is stupid, in my opinion, but there we go)
> which means that if a servlet engine or application server has
> already set a URLStreamHandlerFactory, cocoon can't. The only
> way around this that I can think of is to have some kind of
> extra-sun API for URL handling, or to tyr and get something
> through the JCP. Thoughts people?

There is two ways you can tacke this:

1) use your own URL class (which does your own parsing and wraps around
the underlying java.net.URL class)

2) set the system property that lists the package names used by the
default URLStreamHandlerFactory to get the protocols... it's sort of URL
classpath and it's totally undocumented (but it's there if you look at
the source)... in JDK 1.1 you couldn't set properties, but in JDK 1.2+
you can... but this is a hack and it not guaranteed to work on non-Sun
jvms and in sandboxed secure enviornments (which prevent, of course,
servlets from setting system properties)

But I agree (I've already said this several times) that internal
redirection and aggregation capabilities are a must for C2.... I just
have to visualize a way of doing it that appears both elegant and
feasible... (even if I admit the cocoon: is still worth considering)

My whiteboard is full of diagrams about data aggregation, layout/style
separation, internal sitemap redirection and xlink translation.... but
the picture is still too fuzzy to be expressed...

Stay tuned for a RT coming soon...

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------

Re: [C2] Merging pipelines into a new pipeline

Posted by Paul Russell <pa...@luminas.co.uk>.
On Tue, Sep 19, 2000 at 01:42:49PM +0000, Ross Burton wrote:
> Why not? We were going to write a really cool URL handler at some point
> anyway (for jar: cvs: class: nfs: etc), is it possible to write a new
> URL Resolver to plug into Xalan/Xerces so that XSL files can access
> files via these new URL schemes?

Ideally, it would make sense for it to be implemented as a
URLStreamHandler, but there is a slight, uh, oddity in the java
API for such things - you can only specify a URLStreamHandlerFactory
once per VM (which is stupid, in my opinion, but there we go)
which means that if a servlet engine or application server has
already set a URLStreamHandlerFactory, cocoon can't. The only
way around this that I can think of is to have some kind of
extra-sun API for URL handling, or to tyr and get something
through the JCP. Thoughts people?

-- 
Paul Russell                               <pa...@luminas.co.uk>
Technical Director,                   http://www.luminas.co.uk
Luminas Ltd.