Details
-
Bug
-
Resolution: Unresolved
-
High
-
5.1, 5.2-dev
-
Server OS: Red Hat 6.4
PHP: 5.3.3
Database: MySQL 5.1.61
Browser: any
Description
Unable to add a new object, using Public API, if other than paragraph tag is in XML Text Block and using <literal>
If you try to add a object, using Public API, and in the XML Text Block has the following
<?xml version='1.0' encoding='utf-8'?> <section> <literal>some text</literal> </section>
I'll get the following error
[eZ\Publish\Core\Base\Exceptions\InvalidArgumentException] Argument 'xmlString' is invalid: Validation of XML content failed: Element 'literal': This element is not expected. Expected is one of ( section, par agraph, header ).
This will fail even with
<?xml version='1.0' encoding='utf-8'?> <section> <header><literal>some text</literal></header> </section>
it will only work using
<?xml version='1.0' encoding='utf-8'?> <section> <paragraph><literal>some text</literal></paragraph> </section>
Attachments
Issue Links
- testing discovered
-
EZP-21334 Wrong XSLT rendering for some ezxml elements
- Closed