Hi,
I have some stupid problem:
I'd like to make the following pipeline:
<map:pipeline>
<map:match pattern="blabla/*.xml">
<map:generate type="serverpages" src="blabla/simple.xsp"/>
<map:transform src="blabla/clean.xsl"/>
<map:serialize type="html" mime-type="text/html"/>
</map:match>
</map:pipeline>
If I omit the <map:transform src="blabla/clean.xsl"/> part, It works fine and
the output is:
<alma xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsp="http://apache.org/xsp"
xmlns:xsp-request="http://apache.org/xsp/request/2.0">
<menu title="X-Smiles Menu">
<row>
<service icon="http://sorbitol/xcries/demo/icons/demos.gif"
link="ccpp://sorbitol/xcries/menu.xml">Demos</service>
<service icon="http://sorbitol/xcries/demo/icons/news.gif"
link="./news/news.xml">News</service>
<service icon="http://sorbitol/xcries/demo/icons/calendar.gif"
link="./calc/calc.xml">Calendar</service>
</row>
<row>
<service icon="http://sorbitol/xcries/demo/icons/applets.gif"
link="./notimpl.xml">Applets</service>
<service icon="http://sorbitol/xcries/demo/icons/bookmarks.gif"
link="./notimpl.xml">Bookmarks</service>
<service icon="http://sorbitol/xcries/demo/icons/setup.gif"
link="./notimpl.xml">Setup</service>
</row>
<row>
<service icon="http://sorbitol/xcries/demo/icons/sip.gif"
link="./notimpl.xml">Videoconf</service>
</row>
<stylesheet>Icons</stylesheet>
</menu>
<?xml-stylesheet type="text/xsl" href="./menu.xsl" title="100x100">
<?xml-stylesheet type="text/xsl" href="./menulist.xsl" alternate="yes"
title="640x400">
</alma>
but with the original pipeline when I use the transform I get a null pointer
exception.
The clean.xsl :
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="alma">
<xsl:value-of/>
</xsl:template>
</xsl:stylesheet>
What is wrong?
Isti
---------------------------------------------------------------------
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]>