You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jason Foster <ja...@uwaterloo.ca> on 2001/05/18 22:20:41 UTC

Avoiding empty elements

This question might better be suited to the Xerces list, but I can't
figure out the HTMLSerializer so I'll ask here :)

Is there any way for me to ensure that elements with no content are
not converted to empty elements?

Given the following markup...

   <textarea><esql:get-string column="note"/></textarea>

... if note contains "some text" then I get ...

   <textarea>some text</textarea>

... but if note is null then I get ...

   <textarea/>

... which most browsers really don't seem to like.

Any suggestions on how to prevent this behaviour would be appreciated.

Jason Foster


---------------------------------------------------------------------
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>


Re: XInclude [C2]

Posted by giacomo <gi...@apache.org>.

On Fri, 18 May 2001, Jim Moran wrote:

> Is there anyway to turn off the automatic XInclude functionality in cocoon2
> and use an XInclude transformer instead?  I want to include some things into
> a document before I apply an xsl template to it?

Just change the CIncludeSAXConnector to NullSAXConnector in
cocoon.xconf

Giacomo

>
> -Jim
>
>
> ---------------------------------------------------------------------
> 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>
>
>
>
>


---------------------------------------------------------------------
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 [C2]

Posted by Jim Moran <ji...@corp.earthlink.net>.
Is there anyway to turn off the automatic XInclude functionality in cocoon2
and use an XInclude transformer instead?  I want to include some things into
a document before I apply an xsl template to it?

-Jim


---------------------------------------------------------------------
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>