core-geonetwork
core-geonetwork copied to clipboard
XSLT / Migration to saxon-HE 11
This is an experiment to update Saxon.
- [x] Java function call can work using ExtensionFunctionDefinition See https://www.saxonica.com/html/documentation10/extensibility/integratedfunctions/ext-full-J.html
- [ ] Java function / How to return object ? eg. SchemaLocalizations.create
- [ ] Java function / Migrate all functions
- [ ] Test saxon extension saxon:call-template. Probably using function with dynamic lookup. Requires to rework template as function in evaluate, suggestions
<xsl:copy-of select="fn:function-lookup(
xs:QName('gn-fn-metadata:evaluate-' || $schema ), 2)
($base, concat('/../', @xpath))"/>
- [ ] Test saxon extension saxon:evaluate https://www.saxonica.com/html/documentation10/xsl-elements/evaluate.html. Using
xsl:evaluate - [x] Replace
saxon:parseparfn:parse-xml - [x] Test URIResolver
- [x] Test XSLT v3
Current status JS app works (base layout templates updated and some Java functions migrated).
SonarCloud Quality Gate failed. 
0 Bugs
0 Vulnerabilities
0 Security Hotspots
45 Code Smells
0.0% Coverage
32.6% Duplication
The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here
Catch issues before they fail your Quality Gate with our IDE extension
SonarLint
Replaced by https://github.com/geonetwork/core-geonetwork/pull/7304