cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Morandini" <luca.morandi...@tin.it>
Subject RE: java.net.URL and cocoon: URI-Scheme
Date Wed, 06 Mar 2002 22:43:16 GMT

hmmm.... I stand corrected once more... anyway, I did try it and it works.

Regards,

--------------------------------------------- 
               Luca Morandini 
               GIS Consultant 
              lmorandini@ieee.org 
http://utenti.tripod.it/lmorandini/index.html 
---------------------------------------------
 

> -----Original Message-----
> From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
> Sent: Wednesday, March 06, 2002 11:35 PM
> To: cocoon-users@xml.apache.org; lmorandini@ieee.org
> Subject: RE: java.net.URL and cocoon: URI-Scheme
> 
> 
> The correct answer on the first question is: No.
> 
> "cocoon:" is named "pseudo-protocol" for a reason: it does not work
> through java.net.URL API, but only using Cocoon's SourceResolver object
> or Cocoon's URLFactory, which could be obtained from the
> ComponentManager. BTW, see <url-factory/> element in the cocoon.xconf.
> 
> However, in many places inside Cocoon these URLs work (because they use
> either SourceResolver or URLFactory), and these places include XSLT
> processor. So, answering the second question, document(cocoon://) should
> work (also I did not tried this either).
> 
> Vadim
> 
> > -----Original Message-----
> > From: Luca Morandini [mailto:luca.morandini1@tin.it]
> > Sent: Wednesday, March 06, 2002 5:20 PM
> > To: cocoon-users@xml.apache.org
> > Subject: RE: java.net.URL and cocoon: URI-Scheme
> > 
> > Jakob,
> > 
> > the short answer is: Yes.
> > 
> > The long one can be found in the mailing list archives, searching for
> the
> > thread: "Inserting / Comining XML data".
> > 
> > Best regards,
> > 
> > ---------------------------------------------
> >                Luca Morandini
> >                GIS Consultant
> >               lmorandini@ieee.org
> > http://utenti.tripod.it/lmorandini/index.html
> > ---------------------------------------------
> > 
> > 
> > > -----Original Message-----
> > > From: Jakob Praher [mailto:praher.keg@liwest.at]
> > > Sent: Wednesday, March 06, 2002 11:13 PM
> > > To: cocoon-users
> > > Subject: java.net.URL and cocoon: URI-Scheme
> > >
> > >
> > > hi all,
> > >
> > > I was wondering whether the cocoon:// URI-Scheme used in the sitemap
> is
> > > accessible through java.net.URL?
> > >
> > > And if so, could it thus be access by Xalan like this:
> > >
> > > <xsl:value-of select="document( 'cocoon://foo/bar' ) />
> > >
> > >
> > > I have to confess that I haven't tried it out yet - it just came to
> my
> > > mind - but I think it should work, as Java is built heavily around
> the
> > > URL class and there are many URLStreamHandlers available.
> > >
> > >
> > > thanks
> > >
> > > -- Jakob
> 

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message