Opened 12 years ago
Closed 12 years ago
#1066 closed enhancement (fixed)
Schematron rules part of the schema plugin
Reported by: | fxp | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | v2.10.0 RC0 |
Component: | General | Version: | v2.8.0RC0 |
Keywords: | Cc: |
Description (last modified by )
Main goal is to pack the schematron rules with the schema plugin in order to easily add/update rules withtout the need of the source code.
Changes:
- move schematron rules for ISO 19139 to iso19139 schema plugin folder
- rules location
- {plugins}/schematron/*.sch : schematron rules
- {plugins}/schematron/*.xsl : compiled schematron rules
- {plugins}/loc/{lang}/schematron-*.xml : loc files
- move schematron XSL compiler to WEB-INF/classes/schematron
- remove schematron folder at root
- when schema is loaded,
- look for sch file in schema folder and compiles rules
- if no rules found, deal with no schematron rule on validation (ie. no more schematron-rule-none.xsl)
Layout changes:
- some minor layout changes in the widget UI
To include iso19139 schematron rules in your plugins, add a simple XSL which import the one needed:
- Example {myschema}/schematron/schematron-rules-iso.xsl
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:import href="../../iso19139/schematron/schematron-rules-iso.xsl"/> </xsl:stylesheet>
Attachments (1)
Change History (4)
by , 12 years ago
Attachment: | geonetwork-xsd-error.png added |
---|
comment:1 by , 12 years ago
Description: | modified (diff) |
---|
comment:2 by , 12 years ago
comment:3 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Commit b5c50283b492e6383ce9a52487cbac7b07b302d9
Note:
See TracTickets
for help on using tickets.
Dev branch: https://github.com/fxprunayre/core-geonetwork/compare/geonetwork%3Amaster...feature/schema-plugin-with-schematron