RE: Applying custom style sheets before logicsheets [HELP!]

2001-12-16 Thread Wolfram Eisert

Hi,

you can first build your xsp in a seperate pipeline and use
this result as a source for your serverpages-processing.

Example:

















Hope this helps!

Wolfram

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Samstag, 15. Dezember 2001 21:35
> An: [EMAIL PROTECTED]
> Betreff: Applying custom style sheets before logicsheets [HELP!]
>
>
> Hi,
>
> This question may seem very simple, but bear with me as I am
> quite new to cocoon.
>
> I am using Cocoon 2.  I have an XSP page [testdb.xsp], and want
> to pass this through a stylesheet [testdb.xsl], then apply the
> built-in cocoon 2 logic sheets [particularly the esql], apply a
> xml to html stylesheet and then serialize as html.  What do I
> have to do to make this work?
>
> I have started by placing using esql from the testdb.xsp directly
> - this works as expected.  Trouble is, I want the SQL queries to
> be "generated" by the testdb.xsl stylesheet, so removing the esql
> from testdb.xsp and making the testdb.xsl generate them instead
> does not "execute" them - they stay as  even in the
> outputted html.
>
> I have tried many things, such as adding/removing the esql
> namespace from the start of the original xsp document, the xsp
> generated from testdb.xsl, etc, the files below are what are
> "known" to not work.  I think it is just something very simple
> that I am missing...
>
> Here is the relevant part of the sitemap:
>
>  
>  
>  
>  
>  
>
>
> testdb.xsl:
> 
>
>
>  version="1.0"
> xmlns:xsp="http://apache.org/xsp";
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> xmlns:esql="http://apache.org/cocoon/SQL/v2";
> >
>
> 
>   
> 
>   
> 
>
>   
> 
>   personnel
>   
> 
> 
>   
> 
>   
>
>
>   
> 
> 
>   
>   
>
>   
> 
>   
> 
>   
>
>   
> 
> 
>   
> 
>   
>   
> 
>  
>   
> 
>   
>
>   
>
>   
> 
>   
> 
> 
>   
>   
>   
> 
>   
>   
>   
> 
>   
> 
>   
>   
> 
>   
> 
>   
>
>   
> 
>   
> 
>   
>
> 
>
> testdb.xsp:
> 
>
>xmlns:xsp="http://apache.org/xsp";
>   >
>   
> Test
>
> 
>   SELECT uid, userid, password FROM users
>   
> 
>   
>   Username
>   
> 
> 
>   Password
>   
>   
> 
> 
> 
>   
>   delete
> 
> 
>   
> 
>   
> 
>
> thanks for any help,
>
>
>
>
>
> ___
> Never pay another Internet phone bill!
> Freeserve AnyTime, for all the Internet access you want, day and
> night, only £12.99 per month.
> Sign-up at http://www.freeserve.com/time/anytime
>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> 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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




RE: Applying custom style sheets before logicsheets [HELP!]

2001-12-16 Thread Luca Morandini

Wolfram,

I implemented the idea of dinamycally building XSPs from XSLs, and I built
an example, which I can provide to anyone interested.

On the other hand, generating XSP on-the-fly means XSP gets compiled every
time it is called, with obvious performance penalties.

Since XSP has these limitations, I decided to use transformers and rely on
stylesheets as much as possible... so far my application can nicely do
without XSP.

Just my 1.1c (after tax)... best regards,


-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


> -Original Message-
> From: Wolfram Eisert [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, December 16, 2001 11:13 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Applying custom style sheets before logicsheets [HELP!]
>
>
> Hi,
>
> you can first build your xsp in a seperate pipeline and use
> this result as a source for your serverpages-processing.
>
> Example:
>
> 
>   
>   
>   
>   
>   
> 
>
> 
>   
>   
>   
>   
>   
> 
>
> Hope this helps!
>
> Wolfram
>
> > -Ursprüngliche Nachricht-
> > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Gesendet: Samstag, 15. Dezember 2001 21:35
> > An: [EMAIL PROTECTED]
> > Betreff: Applying custom style sheets before logicsheets [HELP!]
> >
> >
> > Hi,
> >
> > This question may seem very simple, but bear with me as I am
> > quite new to cocoon.
> >
> > I am using Cocoon 2.  I have an XSP page [testdb.xsp], and want
> > to pass this through a stylesheet [testdb.xsl], then apply the
> > built-in cocoon 2 logic sheets [particularly the esql], apply a
> > xml to html stylesheet and then serialize as html.  What do I
> > have to do to make this work?
> >
> > I have started by placing using esql from the testdb.xsp directly
> > - this works as expected.  Trouble is, I want the SQL queries to
> > be "generated" by the testdb.xsl stylesheet, so removing the esql
> > from testdb.xsp and making the testdb.xsl generate them instead
> > does not "execute" them - they stay as  even in the
> > outputted html.
> >
> > I have tried many things, such as adding/removing the esql
> > namespace from the start of the original xsp document, the xsp
> > generated from testdb.xsl, etc, the files below are what are
> > "known" to not work.  I think it is just something very simple
> > that I am missing...
> >
> > Here is the relevant part of the sitemap:
> >
> >  
> >  
> >  
> >  
> >  
> >
> >
> > testdb.xsl:
> > 
> >
> >
> >  > version="1.0"
> > xmlns:xsp="http://apache.org/xsp";
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> > xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > xmlns:esql="http://apache.org/cocoon/SQL/v2";
> > >
> >
> > 
> >   
> > 
> >   
> > 
> >
> >   
> > 
> >   personnel
> >   
> > 
> > 
> >   
> > 
> >   
> >
> >
> >   
> > 
> >   
> > 
> >   
> >
> >   
> > 
> >   
> > 
> >   
> >
> >   
> > 
> > 
> >   
> > 
> >   
> > 
> >   
> >
> >   
> > 
> >   
> >
> >   
> >
> >   
> > 
> >   
> > 
> >   
> > 
> > 
> >   
> > 
> > 
> > 
> >   
> >   
> > 
> >   
> > 
> >   
> > 
> >   
> > 
> >   
> >
> >   
> > 
> >   
> > 
> >   
> >
> > 
> >
> > testdb.xsp:
> > 
> >
> >  >   xmlns:xsp="http://apache.org/xsp";
> >   >
> >   
> > Test
> >
> > 
> >   SELECT uid, userid, password FROM users
> >   
> > 
> >   
> > User

RE: Applying custom style sheets before logicsheets [HELP!]

2001-12-16 Thread giacomo

On Sun, 16 Dec 2001, Wolfram Eisert wrote:

The right approach to this problem is to restructure the testdb.xsl as a
logicsheet and register it in the cocoon.xconf file.

Giacomo

> Hi,
>
> you can first build your xsp in a seperate pipeline and use
> this result as a source for your serverpages-processing.
>
> Example:
>
> 
>   
>   
>   
>   
>   
> 
>
> 
>   
>   
>   
>   
>   
> 
>
> Hope this helps!
>
> Wolfram
>
> > -Ursprüngliche Nachricht-
> > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Gesendet: Samstag, 15. Dezember 2001 21:35
> > An: [EMAIL PROTECTED]
> > Betreff: Applying custom style sheets before logicsheets [HELP!]
> >
> >
> > Hi,
> >
> > This question may seem very simple, but bear with me as I am
> > quite new to cocoon.
> >
> > I am using Cocoon 2.  I have an XSP page [testdb.xsp], and want
> > to pass this through a stylesheet [testdb.xsl], then apply the
> > built-in cocoon 2 logic sheets [particularly the esql], apply a
> > xml to html stylesheet and then serialize as html.  What do I
> > have to do to make this work?
> >
> > I have started by placing using esql from the testdb.xsp directly
> > - this works as expected.  Trouble is, I want the SQL queries to
> > be "generated" by the testdb.xsl stylesheet, so removing the esql
> > from testdb.xsp and making the testdb.xsl generate them instead
> > does not "execute" them - they stay as  even in the
> > outputted html.
> >
> > I have tried many things, such as adding/removing the esql
> > namespace from the start of the original xsp document, the xsp
> > generated from testdb.xsl, etc, the files below are what are
> > "known" to not work.  I think it is just something very simple
> > that I am missing...
> >
> > Here is the relevant part of the sitemap:
> >
> >  
> >  
> >  
> >  
> >  
> >
> >
> > testdb.xsl:
> > 
> >
> >
> >  > version="1.0"
> > xmlns:xsp="http://apache.org/xsp";
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> > xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > xmlns:esql="http://apache.org/cocoon/SQL/v2";
> > >
> >
> > 
> >   
> > 
> >   
> > 
> >
> >   
> > 
> >   personnel
> >   
> > 
> > 
> >   
> > 
> >   
> >
> >
> >   
> > 
> >   
> > 
> >   
> >
> >   
> > 
> >   
> > 
> >   
> >
> >   
> > 
> > 
> >   
> > 
> >   
> > 
> >   
> >
> >   
> > 
> >   
> >
> >   
> >
> >   
> > 
> >   
> > 
> >   
> > 
> > 
> >   
> > 
> > 
> > 
> >   
> >   
> > 
> >   
> > 
> >   
> > 
> >   
> > 
> >   
> >
> >   
> > 
> >   
> > 
> >   
> >
> > 
> >
> > testdb.xsp:
> > 
> >
> >  >   xmlns:xsp="http://apache.org/xsp";
> >   >
> >   
> > Test
> >
> > 
> >   SELECT uid, userid, password FROM users
> >   
> > 
> >   
> > Username
> > 
> >   
> >   
> > Password
> > 
> > 
> >   
> >   
> > 
> > 
> > delete
> >   
> > 
> >   
> > 
> >   
> > 
> >
> > thanks for any help,
> >
> >
> >
> >
> >
> > ___
> > Never pay another Internet phone bill!
> > Freeserve AnyTime, for all the Internet access you want, day and
> > night, only £12.99 per month.
> > Sign-up at http://www.freeserve.com/time/anytime
> >
> >
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. 
> >
> > 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. 
>
> 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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>