Ian,
Errors in almost any of the XSLTs used by GeoNetwork for presentation can bring down a site - XSLTs from the schema plugin need to be included in the global XSLT 'world' - they use other templates from that XSLT 'world' and they are compiled the first time they are used as part of that 'world'. That said, it may be possible through the saxon api to do a test compile before accepting the schema - I'll open a ticket on this as a reminder that this should be addressed if it turns out to be possible.
In the meantime (and it's a good idea anyway), schema plugins need to be carefully tested on a test site before they are deployed anywhere important. Sounds to me that the schema plugin you are loading hasn't been tested against the latest trunk and probably hasn't caught up with some of the changes that have occurred since it was last deployed. (You should also open a ticket on loading schema plugins from an https URL).
Cheers and thanks,
Simon
________________________________________
From: ianwallen [ianwallen@anonymised.com]
Sent: Friday, 18 May 2012 4:01 AM
To: geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] Attempted to add a new profile brings down site (Nightly 2012-05-15)
Using the nightly build (2012-05-15) - Fresh install - mostly using defaults.
I attempted to add the MCP profile (which was taken from the following)
https://www.seegrid.csiro.au/subversion/ASRDC/BOM/GeoNetwork/schemaZipArchive/iso19139.mcp-1.4.zip
And after it was installed, I could no longer access the site - it would
always display the message
TransformerConfigurationException : Failed to compile stylesheet. 2
errors detected.
I had attempted a few times to add the profile - I 'm not sure if that is
what caused the error.
1 - I noticed that it did not handle the HTTPS correctly. - (Failed whilst
reading schema-ident file
E:\geonetwork\web\geonetwork\WEB-INF\data\config\schema_plugins\mcp/schema-ident.xml.
Exception message if any is
E:\geonetwork\web\geonetwork\WEB-INF\data\config\schema_plugins\mcp\schema-ident.xml
(The system cannot find the file specified))
2 - Then I did not have the correct name to match the profile. (Failed
whilst adding the schema information. Exception message if any is Schema
name supplied mcp does not match the name of the schema in the schema-id.xml
file iso19139.mcp-1.4)
3 - then is loaded successfully.
After that I got the error.
It is also possible that the MCP profile from that site is is invalid -
however I would not expect and invalid profile to bring down the site?
In the end I reinstalled to correct the issue.
I have included the log file.
http://osgeo-org.1560.n6.nabble.com/file/n4975433/geonetwork.log
geonetwork.log
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Attempted-to-add-a-new-profile-brings-down-site-Nightly-2012-05-15-tp4975433.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
geonetwork-devel List Signup and Options
GeoNetwork OpenSource is maintained at GeoNetwork - Geographic Metadata Catalog download | SourceForge.net