You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ferran Urgell <ur...@yahoo.com> on 2001/11/15 09:27:49 UTC

sql queries

Hi Friends !
I would to know more about how to get queries results in xsl...... 
Where can I find information about this ?
Thanks!
Ferran



---------------------------------
Do You Yahoo!?
Find the one for you at Yahoo! Personals.

AW: How to make an esql query ?

Posted by Reinhard Potz <re...@gmx.net>.
Please post in plain text!

Your question:
If your url is "http://[your-server]/[your-context]/xsp/test.xsp" you need
an xsp-file with the name test.xsp.xsp because you match a string behind
"xsp/*". The matcher returns in {1} "test.xsp".

If you don't want to name your files ".xsp.xsp" ;-) I think you need
following pipeline:

 <map:match pattern="xsp/*.xsp">
    <map:generate type="serverpages" src="docs/samples/xsp/{1}.xsp"/>
    <map:transform src="stylesheets/page.xsl"/>
    <map:serialize/>
 </map:match>

A second hint: you haven't specified a generator (in my example I specified
the serverpages-generator). This means that the default generator will be
taken. If you use the example sitemap of cocoon the file-generator is the
default generator.

Regards,
Reinhard

-----Ursprungliche Nachricht-----
Von: Ferran Urgell [mailto:urgsimfe@yahoo.com]
Gesendet: Donnerstag, 15. November 2001 13:02
An: cocoon-users@xml.apache.org
Betreff: How to make an esql query ?


Hi
I would to make an esql query, in my database (mysql). I'm using an xsp file
and xsl file. But what I need to put in the sitemap?
That not works!
 <map:match pattern="xsp/*">
    <map:generate src="docs/samples/xsp/{1}.xsp"/>
    <map:transform src="stylesheets/page.xsl"/>
    <map:serialize/>
   </map:match>





Do You Yahoo!?
Find the one for you at Yahoo! Personals.


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


How to make an esql query ?

Posted by Ferran Urgell <ur...@yahoo.com>.
Hi
I would to make an esql query, in my database (mysql). I'm using an xsp file and xsl file. But what I need to put in the sitemap? 
That not works!
 <map:match pattern="xsp/*">
    <map:generate src="docs/samples/xsp/{1}.xsp"/>
    <map:transform src="stylesheets/page.xsl"/> 
    <map:serialize/>
   </map:match>




---------------------------------
Do You Yahoo!?
Find the one for you at Yahoo! Personals.

RE: sql queries

Posted by Luca Morandini <l....@tin.it>.
Ferran,

	take a look at SQLTransformer.

Best regards,

P.S.
Please, use plain text for your message sto this mailing list.

---------------------------------------------
               Luca Morandini
               GIS Consultant
              lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------
  
-----Original Message-----
From: Ferran Urgell [mailto:urgsimfe@yahoo.com]
Sent: Thursday, November 15, 2001 9:28 AM
To: cocoon-users@xml.apache.org
Subject: sql queries


Hi Friends ! 
I would to know more about how to get queries results in xsl...... 
Where can I find information about this ? 
Thanks! 
Ferran




Do You Yahoo!?
Find the one for you at Yahoo! Personals.

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