cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Curdt" <tcu...@dff.st>
Subject RE: sql connection
Date Thu, 06 Jul 2000 13:54:32 GMT
> > Is there a way to separate the connection definition
> > from the page?
> 
> Use the XInclude Processor.

It's just like cocoon doesn't include...

<xsl:stylesheet version="1.0"
  xmlns:xinclude="http://www.w3.org/1999/XML/xinclude"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:sql="http://www.apache.org/1999/SQL"
  xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>
...

<xsl:template match="page">
  <sql:execute-query>

    <xinclude:include href="../sql.inc"/>

    <sql:id-attribute>ID</sql:id-attribute>
    <sql:id-attribute-column>SOMETHING_ID</sql:id-attribute-column>
    <sql:query>SELECT * FROM SOMETHING </sql:query>
...

...something wrong?!
--
Torsten

Mime
View raw message