Open Power Template 2.x family
PLEASE PROVIDE THE TEMPLATES AND/OR PHP CODE IN THE TASK DESCRIPTION (Not URL-s to them). THAT ALLOWS US TO REPRODUCE THE PROBLEM! OTHERWISE WE ARE NOT ABLE TO HELP YOU!
Remember to hide all the security-related pieces of code from the task description, like passwords, server paths etc. for your own safety. Once we close the task, we cannot edit it anymore!
PLEASE PROVIDE THE TEMPLATES AND/OR PHP CODE IN THE TASK DESCRIPTION (Not URL-s to them). THAT ALLOWS US TO REPRODUCE THE PROBLEM! OTHERWISE WE ARE NOT ABLE TO HELP YOU!
Remember to hide all the security-related pieces of code from the task description, like passwords, server paths etc. for your own safety. Once we close the task, we cannot edit it anymore!
FS#33 - Error in compiling while template is not extension
Attached to Project:
Open Power Template
Opened by Amadeusz Starzykiewicz (megaweb) - Thursday, 27 November 2008, 09:22 GMT-8
Last edited by Jacek Jędrzejewski (eXtreme) - Monday, 19 January 2009, 06:33 GMT-8
Opened by Amadeusz Starzykiewicz (megaweb) - Thursday, 27 November 2008, 09:22 GMT-8
Last edited by Jacek Jędrzejewski (eXtreme) - Monday, 19 January 2009, 06:33 GMT-8
|
DetailsWhile I'm compiling the lowest template (base for extensions) Firefox sends me XML error:
Błąd parsowania XML: deklaracja XML lub tekstu nie jest na początku jednostki Obszar: http://localhost/~amadeusz/galeria/index.php Numer linii: 2, kolumna 1:<?xml version="1.0" encoding="UTF-8" standalone="no" ?> ^ It's not only in this template, but in all with no extensions. I've got newest SVN version. |
This task depends upon
Closed by Jacek Jędrzejewski (eXtreme)
Monday, 19 January 2009, 06:33 GMT-8
Reason for closing: Fixed
Additional comments about closing: Looks to be fixed in beta1.
Monday, 19 January 2009, 06:33 GMT-8
Reason for closing: Fixed
Additional comments about closing: Looks to be fixed in beta1.
---
<?xml version="1.0" ?>
<opt:prolog version="1.0" />
...
---
The output will have the prolog in the second line. The problem is quite complicated, as the compiler works perfectly for more than one root node in the template and the standard compliance is done by (still quite ineffective) workarounds. In fact, even the XML prolog, if prologRequired == false is represented as a character data node. There are two possible solutions:
1. To redesign the structure of the top XML tree level.
2. To add some extra code to opt:prolog and opt:root that removes the empty text nodes from the beginning and the end of the template.
I would prefer the first one, as it will cause less problems in the future.