]> git.tdb.fi Git - ext/subsurface.git/blobdiff - parse-xml.c
Allow overriding the default xslt path
[ext/subsurface.git] / parse-xml.c
index 49402338746c3d3423b65479583eecc802930210..761cc3b41464ed7188f235a645cdff90c3219816 100644 (file)
@@ -1462,7 +1462,11 @@ static xsltStylesheetPtr try_get_stylesheet(const char *path, int len, const cha
 
 static xsltStylesheetPtr get_stylesheet(const char *name)
 {
-       const char *path = xslt_path, *next;
+       const char *path, *next;
+
+       path = getenv("SUBSURFACE_XSLT_PATH");
+       if (!path)
+               path = xslt_path;
 
        do {
                int len;