cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudhi <>
Subject XSP problem
Date Wed, 17 May 2000 20:57:34 GMT
I don't know what I am doing is right or wrong.
Here is what I am doing.
I have an xml page (result.xml), part of it is generated by xsp.
here is the snippet..

<?xml version="1.0" standalone="no"?>
<?cocoon-process type="xsp"?>
<?cocoon-process type="sql"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="result-xsp.xsl" type="text/xsl"?>

<xsp:page language="java"

  <connection name="foo_connection">

  <TITLE>Search result</TITLE>
    ... build the sql query dynamically based on some criteria ....
  <query connection="foo_connection">

The style sheet used "result-xsp.xsl" also has XSP in it. Basically
which transforms this xml into another xml.

which looks like this

<?xml version='1.0'?>
<xsl:stylesheet version="1.0"
<xsl:template match="PAGE">
  <xsl:processing-instruction name="xml-stylesheet">href="result.xsl"


<xsl:template match="*|@*|text()">
 <xsl:copy-of select="."/>

The stylesheet specified in the above xsl transforms xml into html.

But when i try to view this, I get an error message saying that
" Could not associate stylesheet to document:  no matching stylesheet
for: netscape "

What am I doing wrong here ?

The same thing works if I have the first document as static.

Thanks in advance for any help

View raw message