FW: [osis-core] osisWork regex in XMetaL
Harry Plantinga
osis-core@bibletechnologieswg.org
Wed, 21 Aug 2002 15:20:35 -0400
Changing the escapes to ranges in the regular expression enabled XMetaL
to process it correctly. If you are interested in the details, see
below.
-Harry
-----Original Message-----
From: Luke Baker [mailto:lbaker83@calvin.edu]
Sent: Wednesday, August 21, 2002 3:17 PM
To: hplantin@calvin.edu
Subject: Re: [osis-core] osisWork regex in XMetaL
What he suggested worked, well actually what he meant to suggest. My
current pattern is this:
(([a-z]|[A-Z]|[0-9]|_)+)((\.([a-z]|[A-Z]|[0-9]|_)+)*)?
It seems to accept the value Bible.KJV..1998 which Patrick said it
should not accept. In the XMetaL help, the limitations for schemas are
list as:
XMetaL schema limitations
1. Identity-constraint definitions are ignored.
2. Wildcards are ignored.
3. The <redefine> tag is not supported.
4. <import> of namespaces other than
http://www.w3.org/XML/1998/namespace is not supported.
5. The instance attributes xsi:nil and xsi:type are ignored, and cannot
be edited in Normal or Tags On view.
6. Checking an XML schema (.xsd file) for errors is limited in XMetaL.
It is recommended that you use third-party tools, such as the ones
available from the W3C web-site.
I'm not sure but maybe one of these has to do with why it accepts
Bible.KJV..1998 even though it shouldn't.
Luke
Quoting Patrick Durusau <pdurusau@bellsouth.net>:
> Harry,
>
> Before you hack the schema, submit a bug report to SoftQuad. It may be
> that the version of XMetal you have does not support regexes?
>
> One possible problem may be the support for the escaped character
> classes. To test, make a backup copy of the schema and insert
> [a-z][A-Z][0-9] _ where I have the character class escapes (marked by
>
> \p[L], etc.
>
> Patrick
>
> Harry Plantinga wrote:
>
> >As near as we can figure, there is something wrong
> >with XMetaL which prevents it from accepting much of anything for an
> >osisWork using the given regex. In particular, Todd's valid document
> >doesn't validate in XMetaL, which claims that the osisWork doesn't
> >match the regex.
> >
> >I guess we'll have to hack our copy of the schema
> >to try to come up with a regex that works with XMetaL.
> >
> >-Harry
> >
>
> --
> Patrick Durusau
> Director of Research and Development
> Society of Biblical Literature
> pdurusau@emory.edu
>
>
>