inkex.errormsg(_("The JessyInk script is not installed in this SVG file or has a different version than the JessyInk extensions. Please select \"install/update...\" from the \"JessyInk\" sub-menu of the \"Extensions\" menu to install or update the JessyInk script.\n\n"))
# Remove old master slide property
for node in self.document.xpath("//*[@jessyink:masterSlide='masterSlide']", namespaces=inkex.NSS):
del node.attrib["{" + inkex.NSS["jessyink"] + "}masterSlide"]
# Set new master slide.
if self.options.layerName != "":
nodes = self.document.xpath("//*[@inkscape:groupmode='layer' and @inkscape:label='" + self.options.layerName + "']", namespaces=inkex.NSS)
if len(nodes) == 0:
inkex.errormsg(_("Layer not found. Removed current master slide selection.\n"))
elif len(nodes) > 1:
inkex.errormsg(_("More than one layer with this name found. Removed current master slide selection.\n"))