[GeoNetwork-devel] "Failed to compile stylesheet. X errors detected." - which stylesheet?

Hi

I'm pretty new to Geonetwork and trying to create a custom profile/template.
I get an exception when creating a new metadata record based on my template.
(error log below)

Any idea of what stylesheet I need to check for errors please?

Regards, Gert

2013-07-31 21:57:15,850 INFO [jeeves.request] - HTML Request (from
192.168.0.140:52813) : /geonetwork/srv/eng/metadata.create
2013-07-31 21:57:15,850 DEBUG [jeeves.request] - Method : GET
2013-07-31 21:57:15,850 DEBUG [jeeves.request] - Content type : null
2013-07-31 21:57:15,850 DEBUG [jeeves.request] - Accept : text/html,
application/xhtml+xml, */*
2013-07-31 21:57:15,850 DEBUG [jeeves.request] - Session id is
43221E190388EA72899A55CC6116874D
2013-07-31 21:57:15,850 INFO [jeeves.service] - Dispatching :
metadata.create
2013-07-31 21:57:15,896 ERROR [jeeves.service] - Exception when executing
service
2013-07-31 21:57:15,896 ERROR [jeeves.service] - (C) Exc :
javax.xml.transform.TransformerConfigurationException: Failed to compile
stylesheet. 4 errors detected.
2013-07-31 21:57:15,896 DEBUG [jeeves.service] - Raised exception while
executing service
<error id="error">
  <message>Failed to compile stylesheet. 4 errors detected.</message>
  <class>TransformerConfigurationException</class>
  <stack>
    <at class="net.sf.saxon.PreparedStylesheet"
file="PreparedStylesheet.java" line="176" method="prepare" />
    <at class="net.sf.saxon.TransformerFactoryImpl"
file="TransformerFactoryImpl.java" line="139" method="newTemplates" />
    <at class="de.fzi.dbs.xml.transform.CachingTransformerFactory"
file="CachingTransformerFactory.java" line="127" method="newTransformer" />
    <at class="de.fzi.dbs.xml.transform.CachingTransformerFactory"
file="CachingTransformerFactory.java" line="82" method="newTransformer" />
    <at class="jeeves.utils.Xml" file="Xml.java" line="471"
method="transform" />
    <at class="jeeves.utils.Xml" file="Xml.java" line="362"
method="transform" />
    <at class="org.fao.geonet.kernel.DataManager" file="DataManager.java"
line="2590" method="updateFixedInfo" />
    <at class="org.fao.geonet.kernel.DataManager" file="DataManager.java"
line="1446" method="createMetadata" />
    <at class="org.fao.geonet.services.metadata.Create" file="Create.java"
line="87" method="exec" />
    <at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="230" method="execService" />
    <at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="139" method="execServices" />
    <at class="jeeves.server.dispatchers.ServiceManager"
file="ServiceManager.java" line="420" method="dispatch" />
    <at class="jeeves.server.JeevesEngine" file="JeevesEngine.java"
line="747" method="dispatch" />
    <at class="jeeves.server.sources.http.JeevesServlet"
file="JeevesServlet.java" line="208" method="execute" />
    <at class="jeeves.server.sources.http.JeevesServlet"
file="JeevesServlet.java" line="109" method="doGet" />
    <skip>...</skip>
    <at class="org.fao.geonet.monitor.webapp.WebappMetricsFilter"
file="WebappMetricsFilter.java" line="96" method="doFilter" />
    <skip>...</skip>
    <at
class="org.fao.geonet.monitor.webapp.MetricsRegistryInitializerFilter"
file="MetricsRegistryInitializerFilter.java" line="31" method="doFilter" />
    <skip>...</skip>
  </stack>
  <request>
    <language>eng</language>
    <service>metadata.create</service>
  </request>
</error>

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Failed-to-compile-stylesheet-X-errors-detected-which-stylesheet-tp5070060.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

straatvark wrote

I'm pretty new to Geonetwork and trying to create a custom
profile/template. I get an exception when creating a new metadata record
based on my template. (error log below)

-------------------------------------------------------------

2013-07-31 21:57:15,896 ERROR [jeeves.service] - (C) Exc :
javax.xml.transform.TransformerConfigurationException: Failed to compile
stylesheet. 4 errors detected

Hi,

I have to admit that I'm pretty new to GeoNetwork too, though I did have the
same error.
So if you haven't fixed it already:

For me the problem was the white space in the filepath i.e. C:\Program Files
(x86)\geonetwork
Changed it to C:\geonetwork and now everything works.

Regards,
Jan

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Failed-to-compile-stylesheet-X-errors-detected-which-stylesheet-tp5070060p5070810.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Thanks Jan

I had my installation already in a custom folder.

In the meantime I got mine resolved by removing sections from the different
*.xls files, one by one. Errors was made by myself. Learned a bit in the
process as well :wink:

Regards, Gert

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Failed-to-compile-stylesheet-X-errors-detected-which-stylesheet-tp5070060p5070989.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.