jcabi-xml icon indicating copy to clipboard operation
jcabi-xml copied to clipboard

Add support to validate XML against XSD 1.1

Open mkordas opened this issue 9 years ago • 13 comments

Currently method com.jcabi.xml.XSDDocument#validate uses XSD 1.0 parser. XSD 1.1 has couple of new features added, like possibility to require exactly one attribute out of two that will be useful in other Teamed projects.

I'd expect just to replace 1.0 parser with 1.1, as version 1.1 is just superset of 1.0.

mkordas avatar Jan 24 '16 16:01 mkordas

@yegor256 please take a look at it and dispatch (see par.21)

dmarkov avatar Jan 28 '16 08:01 dmarkov

@mkordas but we're not using any specific parser. we're just using JDK. parser is provided in runtime. or I didn't get the problem?

yegor256 avatar Jan 29 '16 21:01 yegor256

@yegor256 you are right! Do you think it is in scope of integration test, Javadoc or http://xml.jcabi.com/example-xsd.html to provide instruction how to enable XSD 1.1 parsing?

mkordas avatar Jan 29 '16 21:01 mkordas

@mkordas yes, let's document it

yegor256 avatar Jan 29 '16 22:01 yegor256

@mkordas thanks a lot for reporting, 15 mins added to your acc, pmt ID 56af291dc2680807d7000398

dmarkov avatar Feb 01 '16 09:02 dmarkov

@yegor256 actually I've realized that we may have to modify line https://github.com/jcabi/jcabi-xml/blob/master/src/main/java/com/jcabi/xml/XSDDocument.java#L158. We should set it to http://www.w3.org/XML/XMLSchema/v1.1 according to https://xerces.apache.org/xerces2-j/faq-xs.html

mkordas avatar Mar 10 '16 22:03 mkordas

@yegor256 can we proceed here?

longtimeago avatar Apr 04 '16 18:04 longtimeago

@yegor256 could you please respond to messages above?

longtimeago avatar May 08 '16 14:05 longtimeago

@yegor256 ping :)

longtimeago avatar May 23 '16 17:05 longtimeago

@yegor256 please, proceed here :)

longtimeago avatar Jun 10 '16 18:06 longtimeago

@dmarkov pls assign @westonized to this ticket

yegor256 avatar Jun 27 '16 19:06 yegor256

@dmarkov pls assign @westonized to this ticket

@yegor256 OK @westonized please proceed, this task is yours

dmarkov avatar Jun 28 '16 11:06 dmarkov

@westonized any progress so far?

longtimeago avatar Jul 24 '16 10:07 longtimeago