[osis-core] osisWork regex problem

Harry Plantinga osis-core@bibletechnologieswg.org
Wed, 21 Aug 2002 10:26:26 -0400


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
> > 
>