Hi,

It is possible for components in the cocoon.xmap to get source over
the SourceResolver from the sitemap.

cocoon.xconf:
 <component role=".." class=".." logger="..">
  <entry source="cocoon://..."/>
 </component>

My second question is about the validity of sources. Is this
the correct way to test if a file has changed?

resolver = (SourceResolver) manager.lookup(SourceResolver.ROLE);
source = resolver.resolveURI("file://...");

[...after a time delay..]

if (!source.getValidity().isValid())
{
  // For a new source, if the file has changed
  source = resolver.resolveURI(reference);
  [ do something ]
}

Tanks, Stephan Michels.


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