[sword-devel] How to represent special characters in osisID attributes in a gen book

Martin Denham mjdenham at gmail.com
Tue Oct 4 08:05:10 MST 2011

In gen books it seems that the osisID is normally used as the chapter title
    <div type="chapter" osisID="Chapter 1">

However some chapter titles can contain special characters e.g.
    <div type="chapter" osisID="God's Sovereignty">
contains an apostrophe.

I thought that, being an xml attribute, it should be:
    <div type="chapter" osisID="God's Sovereignty">
but that gives the error:
    The value 'God's Sovereignty' of attribute 'osisID' on element 'div' is
not valid with respect to its type, 'osisIDType'.

So how should a chapter title of "God's Sovereignty" be represented?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20111004/524e0c4f/attachment.html>

More information about the sword-devel mailing list