hi all,
when i installed gn2.1.jar on Windows, i met a problem after i chose “yes” for “Do you want to install sample metadata?”.
Then it came out a exception: Raised Exception: can not compile stylesheet.
Most important is that the intalling path is key for intalling sample metadata successful.
The problem came out at the conditioin that the installing path is “c:\Progrom Files\geonetwork”,
when i set the path to “c:\geonetwork”, the installing is ok. The space char in the path is the key point.
I traced the code, the exception was thrown at the MefLib.addMetadata function, and the key line is here:
//— set uuid inside metadata
md = Lib.metadata.setUUID(schema, uuid, md);
This operation need a stylesheet “set-uuid.xsl” to add uuid section in the metadata by transforming. Ok, who knows how to deal with it?