ah, but this one is really simple. I don't believe I need to do anything   
with PHPGenerator but I hope to be advised what I need to do...

Our intranet is a mixture of xml based content and php files. The xml and   
php have nothing to do with each other i.e. the xml doesn't get produced   
by the php - they are separate. The xml gets generated by a CMS, the php   
does other things.

We are moving to more and more content in xml, but have many of our files   
in php. How do I integrate cocoon with my intranet so as to pass through   
the php untouched, but to 'pipeline' the xml?

The snippet of sitemap below sort of works but when selecting a php link,   
the browser asks me to download or save the file as if the mime type is   
unrecognised. Bit frustrating really. I have tried adding type="php" and   
mime-type="text/php" neither work though.

 <map:match pattern="policy/index.html">
     <map:generate   
src="file:///intranet/www/doc/sites/policy/topindex.xml" />
     <map:transform   
src="file:///intranet/www/doc/sites/policy/indexpolicystyle.xsl" />
     <map:serialize type="html" />
 </map:match>

 <map:match pattern="policy/*/index.html">
     <map:generate   
src="file:///intranet/www/doc/sites/policy/{1}/index.xml" />
     <map:transform   
src="file:///intranet/www/doc/sites/policy/indexpolicystyle.xsl" />
     <map:serialize type="html" />
 </map:match>

 <map:match pattern="policy/**.html">
     <map:generate src="file:///intranet/www/doc/sites/policy/{1}.xml" />
     <map:transform   
src="file:///intranet/www/doc/sites/policy/policystyle.xsl" />
     <map:serialize type="html" />
 </map:match>

 <map:match pattern="policy/**.xml">
     <map:generate src="file:///intranet/www/doc/sites/policy/{1}.xml" />
     <map:serialize type="xml" />
 </map:match>

 <map:match pattern="policy/**.htm">
     <map:read src="file:///intranet/www/doc/sites/policy/{1}.htm" />
 </map:match>
 
 <map:match pattern="**.php">
  <map:read src="file:///intranet/www/doc/sites/{1}.php" />
 </map:match>



the cocoon app is called sites and my main html document dir is called   
sites

any suggestions????

TIA
Conrad

Conrad Crampton J
Software Solutions
Kent Police
FHQ
11 Edinburgh Square
Sutton Road
Maidstone
Kent
ME15 9BZ

(01622 652869
19 2869

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