cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolai P Guba <...@frontwire.com>
Subject Re: Getting Started with XSP on Coccon2
Date Tue, 18 Sep 2001 20:37:28 GMT
Chris Finn <yarnfish2001@yahoo.com> writes:

> --- Nicolai P Guba <npg@frontwire.com> wrote:
> > "Torsten Curdt" <tcurdt@dff.st> writes:
> > 
> > > > I still don't know why this doesn't work then. 
> > I didn't suspect the
> > > > PI's in the file being the problem but removed
> > them nevertheless.
> > Tried that but cannot get mine to work.  I reckon
> > it's a problem with
> > the sitemap because it doesn't look like it's
> > recognising/processing
> > the XSP namespace.
> 
> Several problems I see.  First, you have the wrong
> namespace defined for XSP for Cocoon2:
> 
> Instead of:
> xmlns:xsp="http://www.apache.org/1999/XSP/Core"
> 
> use:
> xmlns:xsp="http://apache.org/xsp"
> 
> Second, the xslt processing instructions are no longer
> recognized in the XSP--so make sure they're in the
> sitemap.
> 
> Remove these from your XSP:
> <?cocoon-process type="xslt"?>
> <?xml-stylesheet type="text/xsl" href="greeting.xsl"?>
> 
> The sitemap looks okay, so I'm thinking it's just a
> problem with your XSP definition.  Since you're
> getting the tags from the XSL, you should know that
> the pipeline is working okay for the transformation
> step.

I removed the instructions as someone suggested earlier on.  I'll give
the namespace a go and recommend that the cocoon2 examples should be
updated.  Having wrong examples can be very frustrating for people
evaluating a product like this for a production environment ;)

I'll give this a whirl and post my results.

Cheers!
-- 
  Nicolai P Guba    http://www.gnu.org         http://www.frontwire.com
                    mailto:nicolai@gnu.org     mailto:npg@frontwire.com
                    GSM: +44 (0)7909 960 751   DDI: +44 (0)20 7368 9708

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