Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8034560 | 7u65 | Joe Wang | P3 | Resolved | Fixed | b01 |
JDK-8026473 | 7u60 | Joe Wang | P3 | Closed | Fixed | b01 |
4 JCK tests (idI021.xsd, idJ029.xsd schema attached) use the xpath expression '. //.' in a selector and in a field.
Although the specification (http://www.w3.org/TR/xmlschema-1/#coss-identity-constraint) states:
--------------------------------------------------
For readability, whitespace may be used in selector XPath expressions even though not explicitly allowed by the grammar:
whitespace may be freely added within patterns before or after any token.
...
Lexical productions
[5] token ::= '.' | '/' | '//' | '|' | '@' | NameTest
[6] whitespace ::= (#x20 | #x9 | #xD | #xA)+
When tokenizing, the longest possible token is always returned.
--------------------------------------------------
The parser ( schemaFactory.newSchema( schemaSources ) ) fails with exception
c-general-xpath: The expression '. //.' is not valid with respect to the XPath subset supported by XML Schema.
Although the specification (http://www.w3.org/TR/xmlschema-1/#coss-identity-constraint) states:
--------------------------------------------------
For readability, whitespace may be used in selector XPath expressions even though not explicitly allowed by the grammar:
whitespace may be freely added within patterns before or after any token.
...
Lexical productions
[5] token ::= '.' | '/' | '//' | '|' | '@' | NameTest
[6] whitespace ::= (#x20 | #x9 | #xD | #xA)+
When tokenizing, the longest possible token is always returned.
--------------------------------------------------
The parser ( schemaFactory.newSchema( schemaSources ) ) fails with exception
c-general-xpath: The expression '. //.' is not valid with respect to the XPath subset supported by XML Schema.
- backported by
-
JDK-8034560 SchemaFactory cannot parse schema if whitespace added within patterns in Selector XPath expression
- Resolved
-
JDK-8026473 SchemaFactory cannot parse schema if whitespace added within patterns in Selector XPath expression
- Closed
- relates to
-
JDK-4988387 validation.SchemaFactory: invalid XPath expression is allowed
- Closed