users@jaxb.java.net

Re: Missing source in JAXB 2.1.3 ?

From: Hanson Char <hanson.char_at_gmail.com>
Date: Thu, 19 Apr 2007 19:59:44 -0700

When I tried to use XJC (2.1.3) against the schema:

    http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd

I got the error below. It seems XJC is mis-interpreting the regular
expression ?

Hanson Char

compile:
     [echo] Compiling the schema...
    [mkdir] Created dir: c:\Playground\jaxb-ri\20070413\samples\xhtml\gen-src
      [xjc] c:\Playground\jaxb-ri\20070413\samples\xhtml\gen-src\test
is not found and thus excluded from the dependency check
      [xjc] Compiling
file:/c:/Playground/jaxb-ri/20070413/samples/xhtml/xhtml1-strict.xsd
      [xjc] [ERROR] InvalidRegex: Pattern value
'[-+]?(\d+|\d+(\.\d+)?%)' is not a valid regular expression. The
reported error was: ''-' is an invali
d character range. Write '\-'.'.
      [xjc] line 219 of
file:/c:/Playground/jaxb-ri/20070413/samples/xhtml/xhtml1-strict.xsd
      [xjc]
      [xjc] [ERROR] InvalidRegex: Pattern value
'[-+]?(\d+|\d+(\.\d+)?%)|[1-9]?(\d+)?\*' is not a valid regular
expression. The reported error was: ''
-' is an invalid character range. Write '\-'.'.
      [xjc] line 230 of
file:/c:/Playground/jaxb-ri/20070413/samples/xhtml/xhtml1-strict.xsd
      [xjc]
      [xjc] [ERROR] InvalidRegex: Pattern value
'[-+]?(\d+|\d+(\.\d+)?%)(,\s*[-+]?(\d+|\d+(\.\d+)?%))*' is not a valid
regular expression. The reporte
d error was: ''-' is an invalid character range. Write '\-'.'.
      [xjc] line 265 of
file:/c:/Playground/jaxb-ri/20070413/samples/xhtml/xhtml1-strict.xsd
      [xjc]
      [xjc] failure in the XJC task. Use the Ant -verbose switch for
more details