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

LSP fails on XHTML entities #17

Open
Nowaker opened this issue Jun 24, 2011 · 1 comment
Open

LSP fails on XHTML entities #17

Nowaker opened this issue Jun 24, 2011 · 1 comment
Assignees

Comments

@Nowaker
Copy link
Collaborator

Nowaker commented Jun 24, 2011

LSP file:

&copy; <a href="http://www.nowaker.net/">Damian Nowak</a>

Stacktrace:

java.lang.RuntimeException: /home/nwkr/projekty/java/openrepublik/openrepublik-web/src/main/webapp/WEB-INF/views/layouts/basic/layout.lsp:49:11: The entity "copy" was referenced, but not declared.
    nu.staldal.lsp.spring.webmvc.LspHotCompilerHelper.doCompile(LspHotCompilerHelper.java:203)
    nu.staldal.lsp.spring.webmvc.LspView.compileLspPage(LspView.java:64)
    nu.staldal.lsp.spring.webmvc.LspView.compileOrReuseLspPageClass(LspView.java:54)
    nu.staldal.lsp.spring.webmvc.LspView.render(LspView.java:39)
    org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047)```
@ghost ghost assigned mikaelstaldal Jun 24, 2011
@mikaelstaldal
Copy link
Owner

I'm aware of this issue, but I don't know any good way to solve it. It's a more general XML issue really.

LSP does only know XML, not XHTML, and the &copy; entity is defined in XHTML.

A workaround is to include the XHTML entity declaration DTD in the LSP file, something like this:

%lat1;
%special;
%symbol;
]>

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

No branches or pull requests

2 participants