Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xml template file results in warning "Content is not allowed in prolog" #198

Open
dotta opened this issue Nov 5, 2013 · 2 comments
Open

Comments

@dotta
Copy link
Member

dotta commented Nov 5, 2013

Put the following template content in a .xml file:

@(param: Int)<?xml version="1.0" encoding="UTF-8"?>
<content>Content</content>

And you should see an annotation in the top-right corner. Hovering on the annotation will reveal the message: "Content is not allowed in prolog.".

The functionality of the editor doesn't seem to be affected. The likely reason is that the WTP parser is reporting the warning because of the inconventional/incorrect xml format.

Link to discussion https://groups.google.com/forum/#!topic/scala-ide-user/0B8ZU6YX4ic

@dragos
Copy link
Member

dragos commented Nov 14, 2013

I believe the template editor can't handle XML, only HTML at the moment.

@dotta
Copy link
Member Author

dotta commented Jan 6, 2014

I'm inlining here Andrew's answer from the mailing list https://groups.google.com/forum/#!topic/scala-ide-user/0B8ZU6YX4ic

I have even completely forgot about the issue :) There were complete Eclipse reinstallations, and last months I have no the issue even with xml validation turned on (as by default). So, in other words, I can not reproduce the issue at the moment. Last Eclipse 4.3.x. integration build is in use.

I guess the issue can be closed for now. I'll report would new information will appear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants