Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-23-2022, 06:10 PM   #1
ChuckieM
Junior Member
ChuckieM began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2022
Device: Apple Books app on iPad
Sigil parsing error

I am running Sigil 1.9.10 on an M1 iMac (OS X 12.4) and I am getting a parsing error on the '@' sign. Below is a minimum viable example that throws the error:

Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
  <title></title>
</head>

<body>
  0: (SWANK::DEBUG-IN-EMACS #<UNDEFINED-FUNCTION @ #x716b082a>)
</body>
</html>
Any help appreciated.
ChuckieM is offline   Reply With Quote
Old 06-23-2022, 06:23 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
That is not valid xhtml so yes, Preview will tell you that.

Try this instead:

Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
  <title></title>
</head>

<body>
  <pre>
0: (SWANK::DEBUG-IN-EMACS # &lt; UNDEFINED-FUNCTION @ #x716b082a&gt;)</pre>
</body>
</html>

Notice the "<" followed by an ">" both of which which is not allowed in xhtml. They must be xml encoded to "&lt;" and "&gt;" respectively.

Preview is showing you where the Chrome based browser is saying the xhtml is invalid.

Last edited by KevinH; 06-23-2022 at 07:19 PM.
KevinH is offline   Reply With Quote
Old 06-23-2022, 07:57 PM   #3
ChuckieM
Junior Member
ChuckieM began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2022
Device: Apple Books app on iPad
Ah, I see. I hadn't worked with XHTML in years and had forgotten about that.

Thanks!
ChuckieM is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Parsing attribute name wellesradio Sigil 5 12-09-2020 09:37 PM
Parsing error Notbelonging Kobo Developer's Corner 4 06-06-2020 03:34 PM
Error while TOC parsing. CrossReach ePub 3 12-23-2017 05:46 AM
PRS-T1 Cannot instal ColorDict: Parsing Error? nikoski Sony Reader 2 04-07-2014 03:34 AM
Error parsing attribute name? seagull Calibre 1 01-01-2010 11:30 AM


All times are GMT -4. The time now is 11:26 PM.


MobileRead.com is a privately owned, operated and funded community.