I am parsing an XSLT transformation to put in a JavaScript variable, to enable me to pull a book from an XML file of books. The variable is taken from an HTML input box. Works fine except when the book contains a ' (quotation mark).
The JavaScript variable is "bookfind". A typical example would be var bookfind = "title='Devil's Claw'". How do I get the ' into XSLT?
Could I do something like Devil{& amp;}s Claw in JavaScript? Or do I have to mess with it in XSLT?
Thanks,
Jon
The JavaScript variable is "bookfind". A typical example would be var bookfind = "title='Devil's Claw'". How do I get the ' into XSLT?
Could I do something like Devil{& amp;}s Claw in JavaScript? Or do I have to mess with it in XSLT?
Thanks,
Jon