I currently (trying to) develop under Cocoon 1.8.2. I developped a little
XML "portal" which works very fine. In Cocoon 1.8.2 i have my resource
files under %TOMCAT_HOME%/webapps/cocoon/portal.
Now I have installed cocoon 2 onto my system and I also copied my files
to %TOMCAT_HOME%/webapps/cocoon/portal. But now I can't access
the files. I walked thru the examples delivered with cocoon and I found two
(for me) strange things:

1.) In sitemap.xconf: Do I have to add a <map:match pattern ../> for each
xml resource
I wan't to access?

2.) How about logicsheets? In the examples I saw that there is no link to
stylesheets or
logicsheets inside the xml documents. I found that there is for each xml
document
a <map:match pattern ../> and there is a link to the stylesheet. But what
about logicsheets?
In my example

I have a xml document like this ...

<?xml version="1.0" encoding="UTF-8"?>
<?cocoon-process type="xsp"?>
<?xml-logicsheet href="index-xsp.xsl"?>
<page>...
</page>

... a logicsheet ...

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
 xmlns:xsp="http://www.apache.org/1999/XSP/Core";>

<xsl:template match="page">
 <xsl:processing-instruction
name="cocoon-process">type="xsp"</xsl:processing-instruction>
  <xsl:processing-instruction
name="cocoon-process">type="xslt"</xsl:processing-instruction>
 <xsl:processing-instruction
name="xml-stylesheet">href="styles/index_html.xsl"
type="text/xsl"</xsl:processing-instruction>

... and finally a stylesheet to convert xml to html. Each file has an
reference to
the next one (xml -> index-xsp.xsl -> index_html.xsl -> html)

How do I handle this in cocoon2?

thanks,
martin


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