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 error!
Date Thu, 07 Dec 2000 05:52:37 GMT
Hi guys,

When i use <xsp:pi> tag between the <page> tag it's giving the problem that "can't
output text before document element!  Ignoring..."
How can we remove this

Amit Kaushik

My XML code is................................

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="ntoday.xsl"?>
<?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"
  xmlns:request="http://www.apache.org/1999/XSP/Request">
>


<page>
<xsp:pi target="xml-stylesheet"> href="ntoday.xsl" type="text/xsl" </xsp:pi>
<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='<xsp:logic><xsp:expr>request.getQueryString()</xsp:expr></xsp:logic>'</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