cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Vega <adri...@isogen.com>
Subject Reloading pages
Date Wed, 25 Sep 2002 07:46:40 GMT
I'm doing a simple transformation of an xml file when an html file of the same 
name is requested and no html file already exists.  The site map entry is as 
follows...

----

<map:match pattern="**/*.htm**">
  <!-- HTML takes priority -->
  <map:act type="resource-exists">
      <map:parameter name="url" value="{1}/{2}.htm{3}"/>
      <map:read src="{../1}/{../2}.htm{../3}" />
  </map:act>
  <!-- If the corresponding XML file exists, render it. -->
  <map:act type="resource-exists">
      <map:parameter name="url" value="{1}/{2}.xml"/>
      <map:generate src="{../1}/{../2}.xml"/>
      <map:transform src="context://stylesheets/xsl/page.xsl">
          <map:parameter name="base-url" value="{../1}"/>
      </map:transform>
      <map:serialize/>
  </map:act>

----

If I start tomcat, request the page, change the xml file within tomcat, and
request the page again, the changs are not reflected.  It is only after I clear
the cache-dir directory and restart tomcat that the changes are reflected.  Is
this normal?  Is there a way to get the changes without shutting down tomcat?

adrianv@isogen.com 





---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.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