[osis-core] osisWork regex problem

Patrick Durusau osis-core@bibletechnologieswg.org
Wed, 21 Aug 2002 10:41:40 -0400


Harry,

About to bounce into an hour long con-call but short answer is no.

The + is to require at least one character after the "." so we don't get 
values like:

Bible.KJV..1998

Can you send the value you are entering?

The regex should be allowing any letter or any number or "_" in any order.

Patrick


Harry Plantinga wrote:

>Below is a discussion I have been having with a student
>working on using the OSIS schema in XMetaL. We're trying
>to figure out what to use for osisWork, a required attribute
>of osisText.
>
>I suggested authorID_bookID, but the regex apparently 
>doesn't understand that value.  I don't have schema documentation
>handy, so I can't debug the regex right now except by guessing, 
>but shouldn't that be an acceptable value?
>
>Here's the regex: ((\p{L}|\p{N}|_)*)((\.(\p{L}|\p{N}|_)+)*)?
>
>Should it be (\p{L}|\p{N}|_)(\.(\p{L}|\p{N}|))*)  
>
>I.e. is the + requiring at least one .xxx?
>
>-Harry
>
>-----Original Message-----
>From: Luke Baker [mailto:lbaker83@calvin.edu] 
>Sent: Wednesday, August 21, 2002 8:25 AM
>To: Harry Plantinga
>Subject: RE: OsisText
>
>
>I tried this and it doesn't seem to work. My start tag is this:
><osisText osisWork="eckhart_sermons"> When I tried validating it, it
>says: "Attribute 'osisWork': Value "eckhart_sermons" does not match
>regular 
>expression facet ..." (... being the regex)
>
>
>Quoting Harry Plantinga <hplantin@calvin.edu>:
>
>>Luke,
>>
>>Let's use authorID_bookID as the osisText.
>>
>>-whp
>>
>>>-----Original Message-----
>>>From: Luke Baker [mailto:lbaker83@calvin.edu]
>>>Sent: Tuesday, August 20, 2002 4:12 PM
>>>To: hplantin@calvin.edu
>>>Subject: OsisText
>>>
>>>
>>>So, apparently osisWork is a required attribute for osisText, but I
>>>
>>>have no idea what should be in osisWork, and I don't know what the
>>>
>>>pattern means so I can't just fabricate something that the
>>>pattern will 
>>>accept other than by luck. Should it (osisWork) really be required?
>>>
>>>What should be in it?
>>>
>>>Luke
>>>
>

-- 
Patrick Durusau
Director of Research and Development
Society of Biblical Literature
pdurusau@emory.edu