Hi,
this is my first mail to this list.
I have found a problem with JAXB and I don't now if its a bug or not.
I have a XML with a XHTML namespace:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<name>TESTname>
<descripcion xmlns="
http://www.w3.org/1999/xhtml">Pellentesque habitant
<b>morbi tristique</b>senectus et netus et <b><i>malesuada</i></b> fames ac
<u>turpis</u></descripcion>
</root>
And XSD with the include tag:
<xs:import namespace="
http://www.w3.org/1999/xhtml" schemaLocation="
http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd" />
But when I run the XJC task I get the errors bellow:
[xjc] [ERROR] InvalidRegex: Pattern value '[-+]?(\d+|\d+(\.\d+)?%)' is
not a valid regular expression. The reported error was: ''-' is an invalid
character range. Write '\-'.'.
[xjc] line 219 of
http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd
[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
http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd
[xjc] [ERROR] InvalidRegex: Pattern value
'[-+]?(\d+|\d+(\.\d+)?%)(,\s*[-+]?(\d+|\d+(\.\d+)?%))*' is not a valid
regular expression. The reported error was: ''-' is an invalid character
range. Write '\-'.'.
[xjc] line 265 of
http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd
Because a Pattern in XHTML defnition in
http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd is not valid:
<xs:restriction base="xs:string">
<xs:pattern value="[-+]?(\d+|\d+(\.\d+)?%)|[1-9]?(\d+)?\*"/>
</xs:restriction>
Do you know a solution?
Thanks!