Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#432 Change regex flavor on @matchPattern

GREEN
closed-fixed
Martin Holmes
None
1(low)
2013-11-21
2013-02-05
John P. McCaskey
No

The spec says the regex in the match pattern must be a regular expression according to W3C XML Schema Language. But that dialect of regex was tuned for a significantly different use. It has features not in mainline regex processors such as XSLT 2.0 and Javascript. And it takes some things as implicit that must be explicit in other regex dialects. For example, XML Schema's regex presupposes what in other regex dialects would be a ^ at the beginning and a $ at the end.

A helpful comparison chart is here: http://www.regular-expressions.info/refflavors.html

The lack of opening and closing anchors would probably be the most trouble-making difference.

I suggest the current language be changed to:

@matchPattern should use only common-denominator features widely available in regular expression processors.

Unfortunately, there is no spec for a common-denominator subset. If it's felt the TEI spec must cite some standard and preferably one in the XML family, cite XPath 2.0. Most of the unique features it has (such as its Unicode support) are unlikely to be used on datapointers.

Discussion

<< < 1 2 3 (Page 3 of 3)
  • Serge Heiden
    Serge Heiden
    2013-11-13

    Martin, your suggestion is sound and I completely agree with it.

     
  • Martin Holmes
    Martin Holmes
    2013-11-21

    Implemented rev 12660. Closing the ticket.

     
  • Martin Holmes
    Martin Holmes
    2013-11-21

    • status: open --> closed-fixed
     
<< < 1 2 3 (Page 3 of 3)