Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 09-22-2011, 12:43 PM   #1
ccraig13
Junior Member
ccraig13 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2011
Device: iPhone 3G
Google Analytics URLs won't validate

I have the following url:
Code:
<a href="http://example.com/?utm_source=book%2Btitle&utm_medium=ebook&utm_content=other%2Bbook&utm_campaign=ebook%2Bclicks">example.com</a>
which generates this error:
Code:
The operation you requested cannot
be performed because book_split_007.xhtml
is not a well-formed XML document.

An error was found on line 412, column 111:
unterminated entity reference 'utm_medium'.
This URL is generated directly from Google's link generator

So it seems to not understand that the code is in an href.
ccraig13 is offline   Reply With Quote
Old 09-22-2011, 02:01 PM   #2
susan_cassidy
Wizard
susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.
 
Posts: 1,806
Karma: 1662214
Join Date: Jan 2009
Device: Kindle, iPad (not used much for reading)
It could possibly be because that is not an existing document, or because the slash at the end of the domain, followed directly by the question mark, is unusual. Normally, when parameters are passed, there is a program name after the slash, and before the question mark. Maybe the validation algorithm didn't expect that combination?
susan_cassidy is online now   Reply With Quote
 
Enthusiast
Old 09-22-2011, 03:52 PM   #3
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,188
Karma: 604284
Join Date: Sep 2009
Device: PRS-505
You need to change the '&'s to '&amp;'s otherwise the XML parser thinks they are the start of entities.
charleski is offline   Reply With Quote
Old 09-22-2011, 04:05 PM   #4
ccraig13
Junior Member
ccraig13 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2011
Device: iPhone 3G
I forgot this is an xml document not an html. Thanks!
ccraig13 is offline   Reply With Quote
Old 07-17-2012, 02:16 PM   #5
Leverpullr
Member
Leverpullr began at the beginning.
 
Leverpullr's Avatar
 
Posts: 16
Karma: 10
Join Date: Jul 2012
Location: Left Coast
Device: Kindle/generic android tablet
Hi,
I am experiencing this same 'unterminated entity reference' when Sigil finds an '&' in an html link within my epub. It is like the above example, and I tried replacing the '&' with '&amp;' but then this breaks my link (which is an affiliate link to a product at an online store).

Is there any work around to get Sigil to ignore this...or will I need to manually edit the xhtml outside of Sigil and then re-zip the files into an epub as the final step before publishing to Apple/B&N, etc.

Thanks in advance!
Leverpullr is offline   Reply With Quote
Old 07-17-2012, 02:32 PM   #6
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,859
Karma: 2623257
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
No, it should work. In which view are you making the change?
Toxaris is offline   Reply With Quote
Old 07-17-2012, 02:44 PM   #7
Leverpullr
Member
Leverpullr began at the beginning.
 
Leverpullr's Avatar
 
Posts: 16
Karma: 10
Join Date: Jul 2012
Location: Left Coast
Device: Kindle/generic android tablet
I made the edit in 'code view' (see below)
<a href="http://www.shareasale.com/r.cfm?u=666470&amp;b=358708&amp;m=37742&amp;afftra ck=rng&amp;urllink=www%2Ebotachtactical%2Ecom%2Fta grho%2Ehtml">MR Grappling hook</a>

Sigil likes that..no error now, but if I then try the modified link in my browser it is broken at the link target's server end due to the & substitutions I think.
Leverpullr is offline   Reply With Quote
Old 07-18-2012, 02:52 AM   #8
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,859
Karma: 2623257
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Do you know there is a space in the link? I don't know if that is on purpose or a copy/past error. Spaces can create an issue in links. You can replace it by %20 if I remember correctly.
Toxaris is offline   Reply With Quote
Old 07-18-2012, 04:17 PM   #9
Leverpullr
Member
Leverpullr began at the beginning.
 
Leverpullr's Avatar
 
Posts: 16
Karma: 10
Join Date: Jul 2012
Location: Left Coast
Device: Kindle/generic android tablet
You are right, but yes I thick that was a paste error (it doesn't work even with it removed).
I did more tests and it seems that the issue is at the target server which doesn't like the XHTML-correct link. I work with other affiliate links that contain 'ampersand%;' and they do function correctly. Luckily this one had another option to create shortened "license plate" links, as favored by social network sites etc. When I did it that way is was a much shorter one with no ampersand headaches.

So this isn't an issue for me within Sigil anymore. Thanks again.
Leverpullr is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
my epub won't validate, please help? moonmyst532 ePub 6 02-19-2011 06:17 PM
mouse click tracking or analytics? PChuprina ePub 3 10-29-2010 11:44 PM
Validate ePub Haya Sigil 8 11-27-2009 05:32 PM
Google analytics slowing things down pilotbob Feedback 17 02-11-2009 11:41 AM


All times are GMT -4. The time now is 08:34 PM.


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