On 30.07.2009, at 10:49, [email protected] wrote:

Hi,

Hi Steffen,


I want to ask if it is planned to recognize CDATA sections in settings.xml as values are trimmed and I don't need them trimmed. ;)

Likely not. CDATA is solely a markup instrument to avoid excessive escaping of characters. While they show up individually as nodes in an element, the specification still treats them as regular character data that is not to be handled different from regular text contents.

I will look into it over the weekend though.


Minimum example:

<setting name="replace">
 <parameter name="what">
   <parameter><![CDATA[ + ]]></parameter>
 </parameter>
 <parameter name="with"><![CDATA[ | ]]></parameter>
</setting>

It doesn't matter if I use CDATA or not with this - the spaces will be removed. The only 'fast' solution I could think of was to define a literal

AgaviConfig::set('space', ' ');

in config.php and then use it like this:

<parameter>%space%+%space%</parameter>

which is not that nice imho. Are there any plans to respect CDATA values in settings?

http://trac.agavi.org/ticket/1005 would introduce this as well, I assume; I've added a comment just to be sure.

- David


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to