regexp bug and other code updates

Martin Klang <[email protected]> Sat, 26 Jul 2003 10:58:02 +0000 (GMT)
Newsgroups gmane.text.xml.o-xml
Message-ID <[email protected]>
Hi,

It seems there's a bug in the regex 'match' functions, causing no results
to be returned unless there's at least one grouping in the expression.
the bug has been fixed in CVS.
If you need a workaround but don't want to build from CVS, try putting
parenthesis in the pattern, eg match($in, '(\w+)') is more likely to work.

other changes that have made it into CVS since the last release:

Nodeset.append() changed to Nodeset.add() to avoid conflict with
Element.append().

new regex function 'matches(input, pattern)' returns true if 'input'
matches 'pattern' at least once. also 'String.matches(pattern)'.

Node.parent() and Node.document() functions have been sanitised.

regression test suite (XP style unit tests) integrated.

there's likely to be a number of bug fixes as more unit tests are put into
place.

if you've got the CVS version you can now also generate a test report
using the ant target 'lang.test'

as i'm in the process of changing the documentation method for the node
interfaces, the generated docs will look a bit funny until its all done.

also, more information about how to integrate XP unit tests and do
test-driven development with o:XML coming soon!


later,


/m

Martin Klang
http://www.o-xml.org - the object-oriented XML programming language