diff options
author | Rihards Olups <git-no-reply@zabbix.com> | 2014-12-30 21:02:57 +0300 |
---|---|---|
committer | Rihards Olups <git-no-reply@zabbix.com> | 2014-12-30 21:02:57 +0300 |
commit | 0bc8d9fca77e948580a719da448a973351a731ad (patch) | |
tree | ae1ea2276372bf70989fc7bb91bb0cc24a6cc10d /misc | |
parent | ada5b4b585a281c19a47f6a0520fcc60cd5bb2b8 (diff) |
.......... [ZBX-8404] add xslt file that allows to remove unneeded inkscape tags & briefly describe it in readme
Diffstat (limited to 'misc')
-rw-r--r-- | misc/images/README | 4 | ||||
-rw-r--r-- | misc/images/strip_inkscape_attributes.xslt | 14 |
2 files changed, 18 insertions, 0 deletions
diff --git a/misc/images/README b/misc/images/README index 6cf3fb1ed80..7a4a7d61ab7 100644 --- a/misc/images/README +++ b/misc/images/README @@ -7,3 +7,7 @@ png_modern contains current Zabbix network map images in PNG format. In addition to using pre-generated SQL files you may also generate an XML file to import additional iconsets with png_to_xml.sh script. + +strip_inkscape_attributes.xslt may be used to remove inkscape-specific + attributes from SVG files: + xsltproc strip_inkscape_attributes.xslt file.svg diff --git a/misc/images/strip_inkscape_attributes.xslt b/misc/images/strip_inkscape_attributes.xslt new file mode 100644 index 00000000000..b95ce731bba --- /dev/null +++ b/misc/images/strip_inkscape_attributes.xslt @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"> +<xsl:output method="xml" encoding='UTF-8' standalone="no"/> + +<xsl:template match="node()|@*"> + <xsl:copy> + <xsl:apply-templates select="node()|@*"/> + </xsl:copy> +</xsl:template> +<xsl:template match="@*[starts-with(name(), 'inkscape:export')]"/> + +</xsl:stylesheet> |