Opened 12 years ago
Last modified 12 years ago
#1066 closed enhancement
Schematron rules part of the schema plugin — at Version 1
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>
Change History (2)
by , 12 years ago
Attachment: | geonetwork-xsd-error.png added |
---|
comment:1 by , 12 years ago
Description: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.