I've been looking for an answer to this for some while now and I can't seem
to find
any sort of solution for it, so if anybody here can help me out I'd be most
appreciative.

Here's the deal: I'm wondering if you can use XSP in both an XML file and in
an XSL file.
Here's basically what I'm attempting to do:

- I have a HTTP server that dishes out XML documents that are created via
PHP. This box
  provides a search engine and the results are sent back to the requestor
via XML.

- In order to make sense of this stuff, I do an include in an XML file on my
Cocoon server
  (which can be either on the same machine or seperated -- most likely, it
will be seperate)
  like such:

    ... stuff ...

    <util:include-uri>
      <util:href>
        <xsp:expr>"http://search.engine.com/search.php?query="; + 
          URLEncoder.encode(request.getparameter("query"))
        </xsp:expr>
      </util:href>
    </util:include-uri>

    ... etc ...


- This XML document then goes off to an XSL doc, which will take the search
results and do
  some magic on them like ordering them and displaying so many per page.
(The search engine
  returns all links that match a query unordered.)


So, I have to use XSP (I believe) in both the XML doc (to create the proper
query to send to the
search engine and such, the query above is abbreviated for the sake of
brevity) and in the
XSL document (to make sense of returned results).

The problem is, whenever I try using XSP in both the root XML document and
in the XSL that is
applied to it, nothing happens. If I try to open that XML document in a
browser, the browser will
sit there forever waiting for the page to be returned by the web server that
Cocoon is on. The
web browser will never time-out, it will just sit there forever with a
spining globe. (Or animated
"I'm downloading right now thing", whatever.)

Anybody have any ideas? Is it even possible? And what's going on there
anywhere? Can Cocoon compile
the XSP when you have it on more than one page or what?

Here's my setup if it's pertinent:

Apache 1.3.20
Sun JDK 1.3.1
Cocoon 1.8.2
Tomcat 3.2.2
Linux 2.4.3 kernel

Thanks for the help, hopefully...

J

---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to