Hi, C2ers!

I'm still trying to understand how source resolver works with different
types of paths and protocols.

Can anybody please point me to some kind of documentation about the path
resolution? I can't figure out why SourceResolver.resolve() returns
different formats of paths. Is that expected behavior? Reading the mail
archive did not give a clue of what "context" protocol supposed to be. E.g.,
see this posting from Berin:
http://mailman.real-time.com/pipermail/cocoon-devel/2001-May/008073.html .

I expect, that every path in a sitemap must be resolved relatively to
servlet context and in this case using an absolute path like
'/docs/index.xml' will be equal to 'context://docs/index.xml'. I think that
the following behavior is more obvious to end-users:

/path/file.xml --> points to a file from the webapp context root
path/file.xml --> ponts to a file relative to the current request path

and there is no need for a context:// protocol in this case. As I remember,
there was a proposal for 'sitemap://' protocol, which can be used in
sub-sitemaps, which could be used for sitemap-relative paths.

Do I get something wrong? Any comments/suggestions?

Regards,
    Konstantin Piroumian

---------------------------------------------------------------------
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