Repository navigation
·
6 commits
to master
since this release
- Extended
ves-1.0.xsd(v1.0.0-RC8) with the optionalnamespaceselement inxsd, used by the XPath expression of theprecondition - The VES engine now applies the
preconditionofxsdelements (resource typesxsdandzip); previously it was ignored with a warning.
If the precondition is not fulfilled, the XML Schema validation is skipped. ValidationExecutorXSDandValidationExecutorXSDBuildersupport an optional prerequisite XPath expression with a namespace context.
It is evaluated on the document that is validated (for partial sources the part only).CustomErrorDetailshas a new optionaldescription(the reason for the customisation), filled fromcustomError/descriptionof a VESLoadedVES.Headernow contains thelicenseelements of a VES (getAllLicenses, new recordLoadedVES.License)- The VES engine now reports an error instead of throwing an
IllegalStateExceptionif a Schematronengineis known to ph-schematron but not supported (pure-xslt,xslt) - The VES engine now applies the
catalogofxsdelements with the resource typexsd; previously it was ignored with a warning - A
catalogentry of anxsdelement must reference a resource of typexsd, otherwise loading the VES fails - The
idof asystemcatalog entry and the referenced system ID are normalised before comparison (e.g../common.xsdmatchescommon.xsd) - The VES engine now applies the
input/optionelements of aschematronelement; previously they were ignored.
The optionphaseselects the Schematron phase (not for the resource typexslt), all other options are passed as XSLT parameters (not for the enginepure-xpath).
The optionlangCode, duplicate option names and unsupported options give a loading error. ValidationExecutorSchematronand its builder have the new methodssetPhase/phaseandaddParameter/parameterto set the Schematron phase and custom XSLT parameters- Updated to ph-schematron 10.3.6, which caches Schematrons with XSLT parameters and applies the phase for the engine
schxslt2 - Removed the misleading warning about missing catalog support for public IDs; XML Schema imports and includes never provide one, and the
publiccatalog entries match namespace URIs LoadedVES.Headernow contains themetadataelements of a VES (getAllMetadata); previously they were ignored.
Keys and values must follow the rules of SMP custom properties (VESLoader.isValidMetadataKey/isValidMetadataValue); invalid or duplicate keys give a loading error.
Keys starting with the reserved prefixves-are loaded as well; their treatment is up to the application.VESStatus1Helper.convertno longer drops the classifier of thereplacementelement of a VES status- Added
VESStatus1Helper.convert (VesStatusType, ErrorList): an invalidreplacementof a VES status (invalid version, but also invalid group ID, artifact ID or classifier, which previously threw an exception) is reported as an error.
The VES engine treats it as a loading error.
convert (VesStatusType)logs it and ignores the replacement - Changed
ves-1.0.xsd(v1.0.0-RC8): thenamespaceselement was removed fromrequires, as it was never used there.
It is only part ofpartialRequiresnow (unchanged element order).
A VES withrequires/namespacesis no longer valid - The VES engine no longer loads external DTDs referenced via a
DOCTYPEin XML Schemas by default; an empty DTD is used instead.
This can be changed viaDefaultVESLoaderXSD.setLoadExternalDtds (true).
Remote DTDs were already blocked by ph-xml - Changed
ves-1.0.xsd(v1.0.0-RC8): added the optionalxsltProcessorelement toschematron, to select the XSLT processor in preparation of ph-schematron 11.
If absent,saxonis used.
Currently onlysaxonis supported -phoxtrot(ph-schematron 11) and unknown values give a loading error, as does any value for the enginepure-xpath - The VES engine no longer accepts aliases of the Schematron engine IDs (like
iso,schorpure) - onlypure-xpath,iso-schematron,schxsltandschxslt2are supported.
An alias is a loading error that names the ID to use - The VES engine now reads XML Schemas of resource type
xsdalready when loading the VES (also without catalog entries), and reports XML Schemas that cannot be read as loading errors instead of throwing an exception ValidationExecutorPartialandValidationExecutorXSDPartialcan now be used from multiple threads at the same time.
According to its specification anXPathExpressionis not thread-safe, soXSDPartialContextand the prerequisite ofValidationExecutorPartialnow store the XPath as a String together with a namespace context and compile a newXPathExpressionfor every evaluation (like the prerequisites ofValidationExecutorXSDandValidationExecutorSchematron)- New:
XSDPartialContext (String, NamespaceContext, Integer, Integer),XSDPartialContextBuilder.xpath (String, NamespaceContext),XSDPartialContext.getXPath (),XSDPartialContext.getNamespaceContext ()andXSDPartialContext.evaluateNodeSet (Node) - New:
ValidationExecutorPartial (IValidationExecutor, XSDPartialContext, String, NamespaceContext),ValidationExecutorPartial.getPrerequisiteXPathString (),ValidationExecutorPartial.getPrerequisiteNamespaceContext (),VesXmlBuilder.addPartialVES (IValidationExecutorSet, XSDPartialContext, String, NamespaceContext)andLoadedVES.PartialRequiredVES.getPrerequisiteXPathString () - Deprecated for removal: all methods and constructors taking or returning an
XPathExpressionin these classes.
They keep working; a pre-compiledXPathExpressionis evaluated synchronised on that object, and the getters compile a newXPathExpressionon each call if the XPath was given as a String - There is no test for concurrent use: the JDK implementation creates a new evaluation context per call and does not show the problem, so it cannot be reproduced
- New:
- Messages (e.g. warnings) of lazily loaded required VES are now logged instead of being discarded
Full Changelog: phive-parent-pom-12.4.0...phive-parent-pom-12.5.0