You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by mohamed ramzy <m_...@yahoo.com> on 2001/04/12 13:53:48 UTC

How can i do that??

hi

I have an XML file with at least 200 records, i want
to display them as each 10 records in a single page
and i can navigate between them with NEXT and
Previous..

would any one help me to do that.....???

thanx for ur time

=====
Mohamed Ramzy Zakaria, Graduate Research student
School of Computer Science & Information Technology
Jubilee Campus, Nottingham University
Nottingham, UK
TEL: 00 44 (0)115 84 66529
MOB: 00 44 (0)7947105251
MOB E-MAIL: m_ramzy@quios.com

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: [C2] XML-XSP->XSLT

Posted by giacomo <gi...@apache.org>.

On Thu, 12 Apr 2001, Piroumian, Konstantin wrote:

> > On Thu, 12 Apr 2001, Piroumian, Konstantin wrote:
> >
> > > Hi all!
> > >
> > > Is it possible to do this in C2 without creating a custom generator? And
> if
> > > yes, which is the best way in this situation: I have pure XML form
> > > descriptions, then I need to add a common logic to them, then I apply a
> > > stylesheet. So, I need a pipeline like this:
> > > <map:match pattern="search/*.xml">
> > >     <map:read src="xml/forms/{1}.xml" mime-type="text/xml"/>
> > >     <map:transform src="xsl/cc-xsp.xsl"/>
> > >     <map:generate type="serverpages" src="xml/forms/{1}.xml"/>
> > >     <map:transform src="xsl/cc-html.xsl"/>
> > >     <map:serialize />
> > > </map:match>
> >
> > No, this is not possible in C2. You have to rewrite your stylesheet
> > named cc-xsp.xsl into a logicsheet and apply it directly onto your
> > forms/{1}.xml like:
> >
> >  <map:match pattern="search/*.xml">
> >      <map:generate type="serverpages" src="xml/forms/{1}.xml"/>
> >      <map:transform src="xsl/cc-html.xsl"/>
> >      <map:serialize />
> >  </map:match>
> >
> > The generator has to come first. This is the concpt of a C2 pipeline.
>
> I know what means logicsheet in C1 (<xml-logicsheet ...>). So, do you mean a
> taglib or there is also a possibility to add <xml-logicsheet>s to XML and C2
> will process them?

Yes, still.

Giacomo

> Doesn't it break the C2 concept of the sitemap?
>
>     Kot.
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: [C2] XML-XSP->XSLT

Posted by "Piroumian, Konstantin" <KP...@flagship.ru>.
> On Thu, 12 Apr 2001, Piroumian, Konstantin wrote:
>
> > Hi all!
> >
> > Is it possible to do this in C2 without creating a custom generator? And
if
> > yes, which is the best way in this situation: I have pure XML form
> > descriptions, then I need to add a common logic to them, then I apply a
> > stylesheet. So, I need a pipeline like this:
> > <map:match pattern="search/*.xml">
> >     <map:read src="xml/forms/{1}.xml" mime-type="text/xml"/>
> >     <map:transform src="xsl/cc-xsp.xsl"/>
> >     <map:generate type="serverpages" src="xml/forms/{1}.xml"/>
> >     <map:transform src="xsl/cc-html.xsl"/>
> >     <map:serialize />
> > </map:match>
>
> No, this is not possible in C2. You have to rewrite your stylesheet
> named cc-xsp.xsl into a logicsheet and apply it directly onto your
> forms/{1}.xml like:
>
>  <map:match pattern="search/*.xml">
>      <map:generate type="serverpages" src="xml/forms/{1}.xml"/>
>      <map:transform src="xsl/cc-html.xsl"/>
>      <map:serialize />
>  </map:match>
>
> The generator has to come first. This is the concpt of a C2 pipeline.

I know what means logicsheet in C1 (<xml-logicsheet ...>). So, do you mean a
taglib or there is also a possibility to add <xml-logicsheet>s to XML and C2
will process them?
Doesn't it break the C2 concept of the sitemap?

    Kot.

---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: [C2] XML-XSP->XSLT

Posted by giacomo <gi...@apache.org>.

On Thu, 12 Apr 2001, Piroumian, Konstantin wrote:

> Hi all!
>
> Is it possible to do this in C2 without creating a custom generator? And if
> yes, which is the best way in this situation: I have pure XML form
> descriptions, then I need to add a common logic to them, then I apply a
> stylesheet. So, I need a pipeline like this:
> <map:match pattern="search/*.xml">
>     <map:read src="xml/forms/{1}.xml" mime-type="text/xml"/>
>     <map:transform src="xsl/cc-xsp.xsl"/>
>     <map:generate type="serverpages" src="xml/forms/{1}.xml"/>
>     <map:transform src="xsl/cc-html.xsl"/>
>     <map:serialize />
> </map:match>

No, this is not possible in C2. You have to rewrite your stylesheet
named cc-xsp.xsl into a logicsheet and apply it directly onto your
forms/{1}.xml like:

 <map:match pattern="search/*.xml">
     <map:generate type="serverpages" src="xml/forms/{1}.xml"/>
     <map:transform src="xsl/cc-html.xsl"/>
     <map:serialize />
 </map:match>

The generator has to come first. This is the concpt of a C2 pipeline.

Giacomo

>
> All the processing logic will be in Action, but I will need also some logic
> to generate the presentation (Next, Prev buttons etc.)
>
> Any help is appreciated.
>
> Regards,
>     Konstantin Piroumian.
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


[C2] XML-XSP->XSLT

Posted by "Piroumian, Konstantin" <KP...@flagship.ru>.
Hi all!

Is it possible to do this in C2 without creating a custom generator? And if
yes, which is the best way in this situation: I have pure XML form
descriptions, then I need to add a common logic to them, then I apply a
stylesheet. So, I need a pipeline like this:
<map:match pattern="search/*.xml">
    <map:read src="xml/forms/{1}.xml" mime-type="text/xml"/>
    <map:transform src="xsl/cc-xsp.xsl"/>
    <map:generate type="serverpages" src="xml/forms/{1}.xml"/>
    <map:transform src="xsl/cc-html.xsl"/>
    <map:serialize />
</map:match>

All the processing logic will be in Action, but I will need also some logic
to generate the presentation (Next, Prev buttons etc.)

Any help is appreciated.

Regards,
    Konstantin Piroumian.

---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>