cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kenny Chow <kycaeo...@yahoo.com>
Subject RE: Logicsheet declaration bug?
Date Sat, 20 Apr 2002 02:29:11 GMT
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 <jeremy@go2.com> 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:vadim.gritsenko@verizon.net]
> > Sent: Friday, April 19, 2002 4:56 PM
> > To: cocoon-users@xml.apache.org
> > Subject: RE: Logicsheet declaration bug?
> > 
> > > From: Jeremy Crosbie [mailto:jeremy@go2.com]
> > >
> > > 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:
> <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail:
> <cocoon-users-help@xml.apache.org>
> 
>
---------------------------------------------------------------------
> 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>
> 


__________________________________________________
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message