You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Mike Boos <mb...@ca.ibm.com> on 2004/02/24 19:47:35 UTC
[PATCH] Missing pattern strings for simple types
The PSVIWriter sample, describing the facets of a simple type of base
integer, emits the following:
����������<psv:pattern>
�����������<psv:fixed>false</psv:fixed>
�����������<psv:annotations�xsi:nil="true"/>
����������</psv:pattern>
The PSVIWriter should emit:
����������<psv:pattern>
�����������<psv:value>[+\-]?[0-9]+</psv:value>
�����������<psv:fixed>false</psv:fixed>
�����������<psv:annotations�xsi:nil="true"/>
����������</psv:pattern>
The pattern strings are missing for all simple types of base integer, Name,
NCName, or NMToken.
getLexicalPattern() in XSSimpleTypeDecl.java omits the pattern strings for
the base types because the specified size of the string list of patterns is
too small.
The attached patch sets the pattern string list to the proper size in order
to include the built-in patterns strings.
(See attached file: patchfile.txt)
Mike Boos
mboos@ca.ibm.com
(905) 413-3722