Opened 12 years ago
Last modified 12 years ago
#1238 new defect
generated schematron scontain attributes without name yielding errors in the validator
Reported by: | landry | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | v2.10.0 RC0 |
Component: | General | Version: | v2.8.0 |
Keywords: | Cc: |
Description
Symptoms are WARNING: schematron xslt /data/webapps/geonetwork/2.8.0/dev/config/schema_plugins/iso19139/schematron-rules-geonetwork.xsl failed (and the same on schematron-rules-iso.xsl).
This yields error in catalina.out in org.fao.geonet.kernel.DataManager.getSchemaTronXmlReport(DataManager.java:876)
Error at xsl:attribute on line 384 column 16 of schematron-rules-iso.xsl: XTSE0010: Element must have a "name" attribute Error at xsl:attribute on line 391 column 16 of schematron-rules-iso.xsl: XTSE0010: Element must have a "name" attribute Error at xsl:attribute on line 394 column 16 of schematron-rules-iso.xsl: XTSE0010: Element must have a "name" attribute
In turn the validation window shows 'Schematron error ocurred, rules could not be verified: Failed to compile stylesheet. 46 errors detected.' (for -geonetwork.xsl it's only 2 errors)
Looking at the generated file in schematrons/.build/schematron-rules-geonetwork.xsl (smaller amount of errors than -iso)
<svrl:ns-prefix-in-attribute-values/> <svrl:ns-prefix-in-attribute-values/> <svrl:ns-prefix-in-attribute-values/> <svrl:ns-prefix-in-attribute-values/> <svrl:ns-prefix-in-attribute-values/> <svrl:ns-prefix-in-attribute-values/> <svrl:active-pattern> <xsl:attribute> <value-of/> </xsl:attribute> <xsl:attribute> <xsl:value-of/> </xsl:attribute>
the xsl:attribute tags have no 'name' attribute, thus yielding this warning.
As i dont really understand how this section comes from iso_svrl_for_xslt2.xsl ( the process-pattern template ? ) i'll let it to someone who knows this part to explain it.
Or noone can reproduce that ? Or it's dependent on some version of a processor at some point ?
Note that if i manually set the attribute name to 'none' and do 'save and validate' there's no validation error shown to the user, but the following is shown the datamanager debug log :
The three ? ? ? seem to come from utf-8 chars
And the rest of the message sounds like if the full following section wasnt supposed to be here.
I can comment it out completely, no errors are shown anymore - but i'd just like to ensure this is a real bug.