core-geonetwork icon indicating copy to clipboard operation
core-geonetwork copied to clipboard

XSLT / Migration to saxon-HE 11

Open fxprunayre opened this issue 3 years ago • 1 comments

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:parse par fn:parse-xml
  • [x] Test URIResolver
  • [x] Test XSLT v3

Current status JS app works (base layout templates updated and some Java functions migrated).

fxprunayre avatar Aug 02 '22 12:08 fxprunayre

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 45 Code Smells

0.0% 0.0% Coverage
32.6% 32.6% Duplication

warning 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

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

sonarqubecloud[bot] avatar Aug 28 '23 17:08 sonarqubecloud[bot]

Replaced by https://github.com/geonetwork/core-geonetwork/pull/7304

fxprunayre avatar Aug 31 '23 09:08 fxprunayre