Opened 12 years ago

Closed 12 years ago

#1018 closed defect (fixed)

Schematron does not always use net.sf.saxon.TransformerFactoryImpl

Reported by: fxp Owned by: geonetwork-devel@…
Priority: major Milestone: v2.10.0 RC0
Component: General Version: v2.8.0RC0
Keywords: Cc:

Description

During migration to git, saxon9.jar was removed from schematron folder. On some configuration (Why ?), the wrong XSL transformer factory is used and produce invalid XSL.

Error at xsl:attribute on line 171 column 16 of schematron-rules-iso.xsl:
  XTSE0010: Element must have a "name" attribute

To fix that, I propose to add to ant classpath saxon from maven_repo folder and define the TransformerFactory in a custom jar.

<classpath>
  <pathelement location="../maven_repo/net/sf/saxon/saxon-dom/9.1.0.8b/saxon-dom-9.1.0.8b.jar"/>
  <pathelement location="../maven_repo/net/sf/saxon/saxon/9.1.0.8b-patch/saxon-9.1.0.8b-patch.jar"/>
  <pathelement location="saxonTransformer.jar"/>
</classpath>

Change History (1)

comment:1 by fxp, 12 years ago

Resolution: fixed
Status: newclosed

Commit: 9d5f75d835b8223e8074d7b7790bd317c2ccc6fe

Note: See TracTickets for help on using tickets.