#1066: Schematron rules part of the schema plugin
-------------------------+--------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
Type: enhancement | Status: new
Priority: major | Milestone: v2.9.0
Component: General | Version: v2.8.0RC0
Keywords: |
-------------------------+--------------------------------------------------
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
[[Image(geonetwork-xsd-error.png)]]
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>
}}}
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1066>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.