[ome-devel] LSID validation issue for 2007-06 OME-XML

Curtis Rueden ctrueden at wisc.edu
Fri Sep 7 19:00:05 BST 2007


Hi,

Recently I wrote some XML validation code in Java using Java 1.5's
javax.xml.validation package, and it works great for the 2004 OME-XML
version. But I just tried using it on the 2007-06 version and ran into
a schema parsing error:

InvalidRegex: Pattern value
'(urn:lsid:([\w-\.]+\.[\w-\.]+)+:Plate:\S+)|(Plate:\S+)' is not a
valid regular expression. The reported error was: ''-' is an invalid
character range. Write '\-'.'.

The problem is that [\w-\.] is being interpreted as a character range,
due to the dash. The fix is to write [\w\-\.] instead whenever that
pattern appears. I actually went through and updated all affected XSD
files (ome.xsd, SPW.xsd and AnalysisModule.xsd) and tried to commit
back to the repository, but go the following error message:

svn: Commit failed (details follow):
subversion/libsvn_subr/io.c:2410: (apr_err=13)
svn: Can't create directory
'/home/svn/specification/db/transactions/84-1.txn': Permission denied
subversion/clients/cmdline/util.c:407: (apr_err=13)

So it looks like I don't have commit permission on the OME-XML
specification repository.

Can we get this fix propagated to the web site somehow? I'd like to
ensure my command line Java OME-XML validator works properly with
2007-06.

Thanks,
Curtis


More information about the ome-devel mailing list