cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Benda" <Martin.Be...@utanet.at>
Subject Cocoon 1.8.2 -> 2
Date Thu, 26 Jul 2001 11:33:41 GMT
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message