The element type "system-xml" must be terminated by the matching end-tag "".
I am creating this massive velocity format that provides with several options in the WSIWYG. I keep getting an error when I turn the left nav off, it says the following.
"An error occurred: Could not transform with Script format "_internal/formats/redesign/default - unit - secondary1": Error on line 139: The element type "system-xml" must be terminated by the matching end-tag . You may choose to retry the operation. If the problem persists, please contact a system administrator. The error has been logged to the system console."
Thanks for all of the help in advance!
- velocity.txt 32.1 KB
- xml.xml 18 KB
- left-nav-velocity.txt 8.42 KB
- left-nav-xml.xml 81.4 KB
- Screen_Shot_2016-06-02_at_10.12.03_AM_(2).png 30.3 KB
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Elisabeth Hutze... on 07 Jun, 2016 04:14 PM
Hey Fernando,
I think I may have located the source of the error, but like you said it is a massive format so I may have missed something. This type of error usually occurs when there are mismatched opening and closing tags, so I looked in the velocity.txt file (see attached image, some regions are collapsed for succinctness).
I believe the issue is that your if statement for displayLeftNav == "On" (line 40) is ending before the closing tag for the left column is output (line 197). The #end on line 177 should probably be after the on line 197.
If that is not the issue, I highly recommend ensuring that all your #if and #for statements are properly indented to make it easier to follow where they start and stop, especially in large formats like this, I find it very important to keep code neat, and you can use the little arrows by the line numbers to collapse regions.
Let me know if this solves your issue or if you need further assistance.
Regards,
Elisabeth
2 Posted by Fernando on 22 Jun, 2016 02:21 PM
Split my format up into 4 different parts and realized that the right call out was what was giving me a lot of trouble. But got it to work out.
Thanks for the help!
Fernando closed this discussion on 22 Jun, 2016 02:21 PM.