cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amit Kaushik" <smartkaus...@yahoo.co.uk>
Subject xsp:pi tag
Date Wed, 06 Dec 2000 19:41:23 GMT
Hi guys,

I want to invoke XSL file dynamically but this processing instruction is not working properly
and giving me error that 

no matching stylesheet for: explorer

i have also used <xsp:pi> insted of <xsp:processing_instruction> and <xsp:processing-instruction>
also.

thanks
Amit Kaushik

here is the code of XML file...........................

<?xml version="1.0"?>
<?cocoon-process type="xsp"?>
<?cocoon-process type="xslt"?>
<?xml-logicsheet href="resource://org/apache/cocoon/processor/xsp/library/sql/esql.xsl"?>
<xsp:page
  language="java"
  xmlns:esql="http://apache.org/cocoon/SQL/v2"
  xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>
<xsp:processing-instruction target="xml-stylesheet">
    href="ntoday.xsl"
    type="text/xsl"
</xsp:processing-instruction>
<page>
<esql:execute-query>
<esql:driver>org.postgresql.Driver</esql:driver>
<esql:dburl>jdbc:postgresql://localhost/newztoday</esql:dburl>
<esql:username>username</esql:username>
<esql:password>password</esql:password>
<esql:query>select xml_story from content where news_id='ITGO-215-2000126'</esql:query>
<esql:results>
<amit><esql:get-xml column="1"/></amit>
</esql:results>
<esql:no-results>
 <error>no results were found</error>
</esql:no-results>
<esql:error-results>
 <message><esql:get-message/></message>
 <stacktrace><esql:get-stacktrace/></stacktrace>
</esql:error-results>
</esql:execute-query>
</page>

</xsp:page>


Mime
View raw message