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

Greg Hellings greg.hellings at gmail.com
Tue Oct 4 08:25:00 MST 2011

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 sure which it is in OSIS).


On Tue, Oct 4, 2011 at 10:05 AM, Martin Denham <mjdenham at gmail.com> wrote:
> In gen books it seems that the osisID is normally used as the chapter title
> e.g.
>     <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?
> Thanks
> Martin
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page

More information about the sword-devel mailing list