cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: PATCH: xsp.xsl and esql.xsl strip whitespace incorrectly
Date Sat, 23 Feb 2002 04:38:52 GMT
> From: Christopher Kohlhaas [mailto:kohlhaas@cs.uni-bonn.de]
> 
> Hello Cocooners,
> 
> I've come along the following whitespace problem in esql.xsl and
xsp.xsl
> 
> The esql fragment:
> 
> <esql:query>select * from test_table where id =
>   <esql:parameter>
>     <xsp:expr>id</xsp:expr>
>   </esql:parameter>
> </esql:query>
> 
> produces the following code
> 
> _esql_query.getPreparedStatement().setString(1, String.valueOf(""
>                            + "                                  "
>                            + (id)
>                            + "                               "));
> 
> I found a similiar problem with the following expression
> 
> <xsp:attribute name="name">
>       <esql:get-string column="name"/>
> </xsp:attribute>
> 
> Is this intended or a bug?

I think it is intended (especially in the xsp:element). You may want to
generate white space symbols, which are no different in XML from
non-white space symbols. White spaces play important role in plain text
output generation.

Vadim




---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message