summaryrefslogtreecommitdiffstats
path: root/utils_xml.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-06-19 20:04:17 +0200
committerJan Pokorný <jpokorny@redhat.com>2014-06-19 20:04:40 +0200
commit11ededc00f5dbe6ff50bee75d7340b24950996c8 (patch)
treed2f19d81778f1de27d8fb87efa8a9f05fd8e7b47 /utils_xml.py
parent41468cbc200269ab82c4fce5060f0e2d04d46449 (diff)
downloadclufter-11ededc00f5dbe6ff50bee75d7340b24950996c8.tar.gz
clufter-11ededc00f5dbe6ff50bee75d7340b24950996c8.tar.xz
clufter-11ededc00f5dbe6ff50bee75d7340b24950996c8.zip
filter: interactive "try_edit" as a part of validate_hook
Since this commit, user is able to actively enter the conversion in case it gets broken (just at the place where the outcome stops passing validation, i.e., with as little stressful context presented to the user as possible). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'utils_xml.py')
-rw-r--r--utils_xml.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils_xml.py b/utils_xml.py
index b880348..8128a9f 100644
--- a/utils_xml.py
+++ b/utils_xml.py
@@ -48,6 +48,7 @@ def nselem(ns, tag, **kwargs):
rng_get_start = etree.ETXPath("/{0}/{1}"
.format(namespaced('rng', 'grammar'),
namespaced('rng', 'start')))
+xml_get_root_pi = etree.XPath("/*/processing-instruction()")
xmltag_get_localname = lambda tag: etree.QName(tag).localname
xmltag_get_namespace = lambda tag: etree.QName(tag).namespace