I'm trying to execute Java based on the contents of some xml-ized data. I found the "Included Logicsheet" notes at:
http://www.suranyami.com/XSPtutorial/ and http://cocoon.apache.org/2.0/userdocs/concepts/#c2-abstractions


My understanding is the data-XML gets transformed by the xsl into an xsp that will contain java logic.
I'm not so interested in the XML produced by the xsp, but perhaps I could use serialize it as html.


Here's my problem -- the 2 examples I've seen look so simple, but I can only get serialized XSP, i.e., with no executed java.

Let me give you the file contents:

(http request: http://ourtomcatserver.foo.com/cocoon/test )
------------
sitemap.xmap:
...
<map:match type="regexp" pattern="test">
<map:generate src="/home/sswitzer/public_xml/test.xml"/>
<map:transform src="/home/sswitzer/public_xml/test.xsl"/>
<map:serialize/>
</map:match>
...
------------
test.xml:
<test>hello world</test>
------------
test.xsl:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:xsp="http://www.apache.org/1999/XSP/Core";>
<xsl:template match="test">
<xsl:processing-instruction name="cocoon-process">type="xsp"</xsl:processing-instruction>
<xsp:logic>
System.out.println("<xsl:apply-templates/>");
</xsp:logic>
</xsl:template>
</xsl:stylesheet>


My client gets back:

<?cocoon-process type="xsp">

<xsp:logic xmlns:xsp="http://www.apache.org/1999/XSP/Core";>
System.out.println("hello world");
</xsp:logic>

Which is really cool, considering that it's well set up xsp -- but it doesn't execute anything!

Am I on the right track?  My end result is that the xml-ized data gets put into java 
objects
which I'll then pass on to a servlet.

Thanks, Steve Switzer.






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to