Sorry, I failed to mention that as part of the transformation, the body 
of an xhtml file of the same name as the xml file was being included in 
the output, and this was the file that was being changed.  Looking at a 
previous post, I realized that it was necessary that I "touch" the xml 
file even though it was the xhtml file that was being changed.  So, I 
touched the file, and reloaded the page and (surprise), the changes were 
reflected.  Thanks.

[EMAIL PROTECTED]


Adrian Vega wrote:
> 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?
> 
> [EMAIL PROTECTED]
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 
> 




---------------------------------------------------------------------
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:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to