View Single Post
Old 08-27-2010, 05:44 AM   #14
p3aul
Captain Courageous
p3aul doesn't litterp3aul doesn't litter
 
p3aul's Avatar
 
Posts: 239
Karma: 102
Join Date: Apr 2009
Device: calibre, PRS 505
Quote:
Im curious though. In all the stuff I've read here, I thought the xpath thingy was just "//h2" not "//h:h2" Is there a reason for typing "//h:h2" and NOT "//h2"? Just curious..
From the Calibre Xpath Tutorial:
Quote:
The h: prefix in the above examples is needed to match XHTML tags. This is because internally, calibre represents all content as XHTML. In XHTML tags have a namespace, and h: is the namespace prefix for HTML tags.
Well I guess that cleared that up!
p3aul is offline   Reply With Quote