I had tried both processing instructions
(xml-logicsheet and xsp:logicsheet) but the latter one
failed due to the fact that I didn't know it has to be
placed "directly" after the <xsp:page> tag. I am
thankful that you pointed that out.

And I think this approach (using xsp:logicsheet) is
preferable since it's a cocoon-specific instruction.

--- Jeremy Crosbie <[EMAIL PROTECTED]> wrote:
> Yeah, I noticed that in the logicsheet.xsp but it
> wasn't obvious nor
> documented, at least not as far as I could tell. Why
> is this considered a
> 'feature'?
> 
> > -----Original Message-----
> > From: Vadim Gritsenko
> [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, April 19, 2002 4:56 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Logicsheet declaration bug?
> > 
> > > From: Jeremy Crosbie [mailto:[EMAIL PROTECTED]]
> > >
> > > Here is an XSP with a logicsheet declaration
> using a processing
> > instruction
> > > that works fine:
> > >
> > > <?xml version="1.0"?>
> > > <?xml-logicsheet
> href="movies/logicsheets/movies.xsl"?>
> > > <xsp:page
> > >     xmlns:xsp="http://apache.org/xsp";
> > >     xmlns:esql="http://apache.org/cocoon/SQL/v2";
> > >     xmlns:movies="http://www.go2.com/movies
> > >     <page>
> > >         <movies:movie-names />
> > >     </page>
> > > </xsp:page>
> > >
> > > However using an <xsp:logicsheet/> element below
> fails to recognize
> > the
> > > logicsheet. No errors, just a blank page is
> returned:
> > >
> > > <?xml version="1.0"?>
> > > <xsp:page
> > >     xmlns:xsp="http://apache.org/xsp";
> > >     xmlns:esql="http://apache.org/cocoon/SQL/v2";
> > >     xmlns:movies="http://www.go2.com/movies";>
> > >
> > > <xsp:logicsheet
> location="movies/logicsheets/movies.xsl" />
> > >
> > >     <page>
> > >         <movies:movie-names />
> > >     </page>
> > >
> > > </xsp:page>
> > >
> > > However, if I position the <xsp:logicsheet/>
> element *directly* after
> > the
> > > <xsp:page> element as below it works:
> > >
> > > <?xml version="1.0"?>
> > > <xsp:page
> > >     xmlns:xsp="http://apache.org/xsp";
> > >     xmlns:esql="http://apache.org/cocoon/SQL/v2";
> > >    
>
xmlns:movies="http://www.go2.com/movies";><xsp:logicsheet
> > > location="movies/logicsheets/movies.xsl" />
> > >
> > >     <page>
> > >         <movies:movie-names />
> > >     </page>
> > >
> > > </xsp:page>
> > >
> > > Is this a known bug? I looked in the bug
> database to no avail. Can
> > someone
> > > please verify this?
> > 
> > This is a known /feature/. See also sample shipped
> with Cocoon.
> > 
> > Vadim
> > 
> > >
> > > --jeremy
> > >
> > >
> > 
> > 
> >
>
---------------------------------------------------------------------
> > 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]>
> 
>
---------------------------------------------------------------------
> 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]>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

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