You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Donald Ball <ba...@webslingerZ.com> on 2001/04/24 21:21:41 UTC

Re: Dynamic Attributes

On Tue, 24 Apr 2001, Tony wrote:

> This should have been asked already but I couldn't find it in the list: I
> want to buid an attribute depending of the a request parameter in my xsp
> page

xsp:attribute

- donald


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Xinclude

Posted by Tony <to...@employer.com.br>.
hi

Cocoon 1.8.2

This is my code:
-----
<?xml version="1.0" standalone="yes"?>
<?cocoon-process type="xinclude"?>
<?cocoon-process type="xsp"?>

 <xsp:page language="java"
         xmlns:xsp="http://www.apache.org/1999/XSP/Core"
         xmlns:xinclude="http://www.w3.org/1999/XML/xinclude">
 <page>
 <xinclude:include xinclude:parse="xml" xinclude:href="menu.xml"/>
 </page>
 </xsp:page>
-----

When the included file "menu.xml" hasn't got a <xsp:page> tag in itself, I
got a :

java.lang.NullPointerException
	at
org.apache.cocoon.processor.xinclude.XIncludeProcessor$XIncludeProcessorWork
er.processXIncludeElement

Is this a bug or a "undocumented feature" ? ;)


Tony.


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>