Wallcraft: Beautiful! Thank you for pointing out my error, and for providing the code.

UPDATE: Hey, I want you to know that your xpath statement works on roman numeral also! I just substituted those for a book where the chapters were all roman numbers and it worked!
Manichean: Code, script? So what's a name? just a label. BTW, I was programming in machine code when you were in diapers!