You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Gustavo Mejia <gm...@infotec.com.mx> on 2001/06/11 20:28:56 UTC

Formating !

> Hi,
>
> I am new using cocoon, I am get results using a query, and now I wan format that information, could you
> tell how can I do that ? I know that I need XSL document, I already try with this, and I did't get it.
> here my code ..
>
> <?xml version="1.0"?>
> <?cocoon-process type="xsp"?>
>
> <xsp:page
>   language="java"
>   xmlns:sql="http://www.apache.org/1999/SQL"
>   xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>   xmlns:request="http://www.apache.org/1999/XSP/Request"
> >
>
>   <page title="SQL Search Results">
>
>   <sql:execute-query>
>         <sql:driver>oracle.jdbc.driver.OracleDriver</sql:driver>
>         <sql:dburl>jdbc:oracle:thin:@host:1521:CTA</sql:dburl>
>         <sql:username>mypassword</sql:username>
>         <sql:password>myuser</sql:password>
>        <sql:doc-element>empleados</sql:doc-element>
>        <sql:row-element>registro</sql:row-element>
>
>         <sql:query>select * from employee order by empno</sql:query>
>  </sql:execute-query>
>   </page>
> </xsp:page>
>
>  Thanks in advance !
>  Gustavo Mejia
>  www.Infotec.com.mx


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