* [bug] Export to FreeMind (HTML) fails due to ampersant in URL
@ 2015-02-04 16:46 Karl Voit
2015-02-05 9:08 ` Nicolas Goaziou
0 siblings, 1 reply; 7+ messages in thread
From: Karl Voit @ 2015-02-04 16:46 UTC (permalink / raw)
To: emacs-orgmode
Hi!
Org-mode version 8.3beta (release_8.3beta-721-gd1c5dc) on GNU Emacs
24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17
When I export a simple heading like below, which contains an URL
with an ampersant (&), FreeMind throws an error:
,----[ The exported heading ]
| ** Freemind-Tests
|
| - [[https://www.youtube.com/watch?v=qwtVtcQQfqc&feature=player_embedded][Emacs Rocks 11 - swank-js]]
`----
,----[ FreeMind v1.0.1 Error Message ]
| Error while parsing file:freemind.main.XMLParseException: XML Parse Exception
| during parsing of the XML definition at line 1: Unexpected end of data reached
`----
,----[ resulting mm-file ]
| <map version="0.9.0">
|
| <node>
| <richcontent TYPE="NODE">
| <html>
| <head>
| </head>
| <body>
| <p>Freemind-Tests
| </p>
| </body>
| </html>
| </richcontent>
| <richcontent TYPE="NOTE">
| <html>
| <head>
| </head>
| <body>
| <ul class="org-ul">
| <li><a href="https://www.youtube.com/watch?v=qwtVtcQQfqc&feature=player_embedded">Emacs Rocks 11 - swank-js</a></li>
| </ul>
| </body>
| </html>
| </richcontent>
| </node>
| </map>
`----
When I remove the "&" from the mm-file, FreeMind is able to
import/show the mind-map without any issues.
This might be related with the HTML exporter since ox-freemind.el is
using ox-html.
--
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
> get Memacs from https://github.com/novoid/Memacs <
https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [bug] Export to FreeMind (HTML) fails due to ampersant in URL
2015-02-04 16:46 [bug] Export to FreeMind (HTML) fails due to ampersant in URL Karl Voit
@ 2015-02-05 9:08 ` Nicolas Goaziou
2015-02-05 11:03 ` [bug] Export to FreeMind (HTML) fails due to ampersand " Karl Voit
2015-02-05 11:27 ` [bug] Export to FreeMind (HTML) fails due to ampersant " Achim Gratz
0 siblings, 2 replies; 7+ messages in thread
From: Nicolas Goaziou @ 2015-02-05 9:08 UTC (permalink / raw)
To: Karl Voit; +Cc: Karl Voit, emacs-orgmode
Hello,
Karl Voit <devnull@Karl-Voit.at> writes:
> When I export a simple heading like below, which contains an URL
> with an ampersant (&), FreeMind throws an error:
>
> ,----[ The exported heading ]
> | ** Freemind-Tests
> |
> | - [[https://www.youtube.com/watch?v=qwtVtcQQfqc&feature=player_embedded][Emacs Rocks 11 - swank-js]]
> `----
>
> ,----[ FreeMind v1.0.1 Error Message ]
> | Error while parsing file:freemind.main.XMLParseException: XML Parse Exception
> | during parsing of the XML definition at line 1: Unexpected end of data reached
> `----
>
> ,----[ resulting mm-file ]
> | <map version="0.9.0">
> |
> | <node>
> | <richcontent TYPE="NODE">
> | <html>
> | <head>
> | </head>
> | <body>
> | <p>Freemind-Tests
> | </p>
> | </body>
> | </html>
> | </richcontent>
> | <richcontent TYPE="NOTE">
> | <html>
> | <head>
> | </head>
> | <body>
> | <ul class="org-ul">
> | <li><a href="https://www.youtube.com/watch?v=qwtVtcQQfqc&feature=player_embedded">Emacs Rocks 11 - swank-js</a></li>
> | </ul>
> | </body>
> | </html>
> | </richcontent>
> | </node>
> | </map>
> `----
>
> When I remove the "&" from the mm-file, FreeMind is able to
> import/show the mind-map without any issues.
>
> This might be related with the HTML exporter since ox-freemind.el is
> using ox-html.
This looks like valid HTML code to me. Also it exports fine to HTML. Is
there any restriction related to this specific to FreeMind?
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [bug] Export to FreeMind (HTML) fails due to ampersand in URL
2015-02-05 9:08 ` Nicolas Goaziou
@ 2015-02-05 11:03 ` Karl Voit
2015-02-05 11:27 ` [bug] Export to FreeMind (HTML) fails due to ampersant " Achim Gratz
1 sibling, 0 replies; 7+ messages in thread
From: Karl Voit @ 2015-02-05 11:03 UTC (permalink / raw)
To: emacs-orgmode
* Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> Hello,
Hi!
> Karl Voit <devnull@Karl-Voit.at> writes:
>
>> ,----[ resulting mm-file ]
>> | <li><a href="https://www.youtube.com/watch?v=qwtVtcQQfqc&feature=player_embedded">Emacs Rocks 11 - swank-js</a></li>
>> `----
>>
>> When I remove the "&" from the mm-file, FreeMind is able to
>> import/show the mind-map without any issues.
Forgot to mention: when I start xml-mode with the mm-file, it shows
one error at the ampersand (missing semi-colon) as well.
>> This might be related with the HTML exporter since ox-freemind.el is
>> using ox-html.
>
> This looks like valid HTML code to me. Also it exports fine to HTML. Is
> there any restriction related to this specific to FreeMind?
I checked with an HTML verifier from http://validator.w3.org/check
(HTML Snippet, XHTML 1.0 Strict):
,----[ Generated HTML page for validator ]
| <?xml version="1.0" encoding="utf-8"?>
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
| <head>
| <title>I AM YOUR DOCUMENT TITLE REPLACE ME</title>
| <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
| <meta http-equiv="Content-Style-Type" content="text/css" />
| </head>
| <body>
|
| <ul>
| <li><a href="https://www.youtube.com/watch?v=qwtVtcQQfqc&feature=player_embedded">Emacs Rocks 11 - swank-js</a></li>
| </ul>
|
| </body>
| </html>
`----
There are multiple errors and warnings that relate to the ampersand.
So I guess the URL is not quoted/sanitized properly.
--
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
> get Memacs from https://github.com/novoid/Memacs <
https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [bug] Export to FreeMind (HTML) fails due to ampersant in URL
2015-02-05 9:08 ` Nicolas Goaziou
2015-02-05 11:03 ` [bug] Export to FreeMind (HTML) fails due to ampersand " Karl Voit
@ 2015-02-05 11:27 ` Achim Gratz
2015-02-05 11:58 ` Nicolas Goaziou
2015-02-05 16:59 ` Karl Voit
1 sibling, 2 replies; 7+ messages in thread
From: Achim Gratz @ 2015-02-05 11:27 UTC (permalink / raw)
To: emacs-orgmode
Nicolas Goaziou writes:
> This looks like valid HTML code to me. Also it exports fine to HTML. Is
> there any restriction related to this specific to FreeMind?
Valid HTML, maybe (I've not checked). Valid XML, no.
http://freemind.sourceforge.net/wiki/index.php/File_format
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
DIY Stuff:
http://Synth.Stromeko.net/DIY.html
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-02-09 7:43 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-04 16:46 [bug] Export to FreeMind (HTML) fails due to ampersant in URL Karl Voit
2015-02-05 9:08 ` Nicolas Goaziou
2015-02-05 11:03 ` [bug] Export to FreeMind (HTML) fails due to ampersand " Karl Voit
2015-02-05 11:27 ` [bug] Export to FreeMind (HTML) fails due to ampersant " Achim Gratz
2015-02-05 11:58 ` Nicolas Goaziou
2015-02-09 7:42 ` Karl Voit
2015-02-05 16:59 ` Karl Voit
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).