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

Regards,

--------------------------------------------- 
               Luca Morandini 
               GIS Consultant 
              [EMAIL PROTECTED] 
http://utenti.tripod.it/lmorandini/index.html 
---------------------------------------------
 

> -----Original Message-----
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 06, 2002 11:35 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> 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:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 06, 2002 5:20 PM
> > To: [EMAIL PROTECTED]
> > 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
> >               [EMAIL PROTECTED]
> > http://utenti.tripod.it/lmorandini/index.html
> > ---------------------------------------------
> > 
> > 
> > > -----Original Message-----
> > > From: Jakob Praher [mailto:[EMAIL PROTECTED]]
> > > 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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to