The element type "system-xml" must be terminated by the matching end-tag "".

Fernando's Avatar

Fernando

02 Jun, 2016 03:13 PM

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!

  1. 1 Posted by Elisabeth Hutze... on 07 Jun, 2016 04:14 PM

    Elisabeth Hutzel's Avatar

    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. 2 Posted by Fernando on 22 Jun, 2016 02:21 PM

    Fernando's Avatar

    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!

  3. Fernando closed this discussion on 22 Jun, 2016 02:21 PM.

Comments are currently closed for this discussion. You can start a new one.

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