Udo,
All you need is to write a logic-sheet (which is nothing but an xsl file). Look at all
the samples
of logicsheets registered in cocoon.xconf file (esql.xsl, util.xsl etc).
Thanks,
dims
--- [EMAIL PROTECTED] wrote:
>
>
> Drasko,
>
> below is one of the XML files, I want to start with. It only describes the
> forms content and the db- query. That's all !.
> Nearly everyone who knows the underlying database can create this or a similar
> file. There is no need to know anything about XSP etc.
>
>
> This XML is then piped to a XSL document , which creates a XSP page. This one is
> processed and the results piped to another XSL for formatting the HTML output.
> The advantage is, I have seperated the content (in XML) and the logic and style
> (the two XSL's).
> To create a new database-query-form, the only thing to do is, to change the XML,
> whereas logic and style were only developed once and are not modified again.
>
> The problem in C2 is, that I need for that a pipe with a XSP transformer . Or
> can you tell me, how to pass the XML content to the XSP page ?
>
> Udo
>
> XML sample
>
-----------------------------------------------------------------------------------------------------------------
> <title>NQS Datenbank System</title>
>
> <input>
>
> <selection text="Zeitraum" name="fm_start_date">
> <content code=" >trunc(sysdate)">Heute</content>
> <content code="between add_months(trunc(sysdate,'MM'),-1)+(6.0/24)
> </content>
> <content code="between
> add_months(trunc(sysdate,'MM')..........</content>
> </selection>
>
> <selection text="Legierung" name="alloy">
> <content code="= '8135'">8135</content>
> <content code="= '9958'">9958</content>
> <content query="select bla bla ... order by a"/>
> </selection>
>
> </input>
>
> <querydefs>
> <query>
> <querytitle>Baender WW 1</querytitle>
> <queryshow>table</queryshow>
> <querystatement>SELECT * from
> FROM hm_data_ww1
> where #~#
>
> </querystatement>
> </query>
> </querydefs>
>
> </page>
>
-----------------------------------------------------------------------------------------------------------------
>
>
>
>
>
>
> Drasko Kokic <[EMAIL PROTECTED]> am 20.07.2001 11:48:09
>
> Bitte antworten an [EMAIL PROTECTED]
>
>
>
> An: [EMAIL PROTECTED]
>
> Kopie: (Blindkopie: Udo Kretschmer/ORGIV/Alunorf)
>
>
>
> Thema: Re: Antwort: Re: C2 : XML -> XSP -> HTML
>
>
>
>
>
>
>
> >
>
> Please, explain to me why do you need to pipe it
> yourself ... the ServerPageGenerator will read the
> file.
> Or ... you want something more!?
> Drasko
>
> --- [EMAIL PROTECTED] wrote:
> >
> >
> > This is what I understand as well.
> >
> > Creating XML from static XML with e.g. a
> > FileGenerator works
> > Creating XML from XSP with a ServerPagesGenerator
> > work as well
> >
> > But you are not able to use static XML (e.g. from
> > FileGenerator) and pipe this
> > to a XSP Transformer, right ?
> > This is what I want to do.
> >
> > Udo
> >
> >
> >
> >
> >
> >
> > Drasko Kokic <[EMAIL PROTECTED]> am 20.07.2001
> > 09:19:59
> >
> > Bitte antworten an [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> >
> > An: [EMAIL PROTECTED]
> >
> >
> >
> > Kopie: (Blindkopie: Udo Kretschmer/ORGIV/Alunorf)
> >
> >
> >
> >
> >
> >
> >
> > Thema: Re: C2 : XML -> XSP -> HTML
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > >
> >
> > Hi Udo,
> >
> > C2 can generate XML from the static XML file as well
> > as from the XSP file (via type="serverpages")
> >
> > Gru?
> > Drasko
> >
> > --- [EMAIL PROTECTED] wrote:
> > >
> > >
> > > In C1 one can perfectly seperate content (in XML),
> > > logic (in XSP) and style (as
> > > XSL).
> > >
> > > I have used this for creating dynamic forms and
> > > executing database queries
> > > whereas
> > > the form description and the db-query were located
> > > in the XML file.
> > > For each different database query / form an
> > > appropriate XML file was created.
> > >
> > > Logic and style were located in XSL documents and
> > > were developed once.
> > >
> > > The XML was piped to the first XSL which creating
> > a
> > > XSP page,which perfomed the
> > > query and the results were piped to the XSL for
> > > formatting the output.
> > >
> > > To do the same thing in C2, we need to use a XML
> > > filegenerator and a XSP
> > > transformer, which obviously does not exists in
> > the
> > > moment.
> > >
> > > Does anyone know, if it's planned to create a XSP
> > > transformer ?
> > > Or is there simply another way in C2 ? All hints
> > are
> > > appreciated.
> > >
> > > Cheers
> > >
> > > Udo
> > >
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
>
>
> Mit freundlichen Grüßen
>
> Udo Kretschmer
>
> Aluminium Norf GmbH
> 41403 Neuss
> ORGIV
> Telefon: 02131/937 640
> Telefax: 02131/5339950640
> eMail: [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]>
=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from 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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>