Per Chris Little (circa 2009 when I asked the same question:
The relevant bit of the regex is: (\p{L}|\p{N}|_|(\\[^\s]))+
The last option permits escaping any non-space character with a
leading \. Further to that, NBSP (0xA0), by convention, represents
space (0x20) in osisID/osisRef.
I thought osisID attributes were very strictly defined with certain
reference schemes and abbreviations? I get fuzzy on the osisID topic
but I thought it was an enumerated list of values that were pretty
much like matt.1.1, matt.1.2, etc? You're probably looking for a title
attribute/element (not
In gen books it seems that the osisID is normally used as the chapter title
e.g.
However some chapter titles can contain special characters e.g.
contains an apostrophe.
I thought that, being an xml attribute, it should be:
but that gives the error:
The value 'God's Sovereignty'