Thread: KF8 Output
View Single Post
Old 04-29-2012, 03:25 PM   #36
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: 8,930
Karma: 6361444
Join Date: Nov 2009
Device: many
Hi,

That code is part of the KF8 creation that is walking an lxml tree and cloning it to remove all of the namespace information (html5 does not use namespace prefixes). The funny thing is it builds up the list of nodes (the path) from the root node to this node and then when processes that list of nodes along the path it runs into a case that says the child that was there on the way up no longer exists

So somehow it found all of the indexes on the way up but they are not there on the way back. Strange.

Is there a short epub that you can post that causes the problem?

KevinH
KevinH is offline   Reply With Quote