summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils_cib.py8
-rw-r--r--utils_xslt.py3
2 files changed, 11 insertions, 0 deletions
diff --git a/utils_cib.py b/utils_cib.py
index de2bba1..bf5d3a0 100644
--- a/utils_cib.py
+++ b/utils_cib.py
@@ -54,3 +54,11 @@ class ResourceSpec(object):
ret += ('<xsl:attribute name="type">{0}</xsl:attribute>'
.format(self._type))
return ret
+
+ @property
+ def xsl_attrs_select(self):
+ ret = "@class='{0}'".format(self._class)
+ if self._provider is not None:
+ ret += " and @provider='{0}'".format(self._provider)
+ ret += " and @type='{0}'".format(self._type)
+ return ret
diff --git a/utils_xslt.py b/utils_xslt.py
index 553674d..bf2f14c 100644
--- a/utils_xslt.py
+++ b/utils_xslt.py
@@ -8,6 +8,9 @@ __author__ = "Jan Pokorný <jpokorny @at@ Red Hat .dot. com>"
from .utils_xml import NAMESPACES, XSL
+NL = '&#xa;'
+
+
def xslt_identity(particular_selector=''):
return '''\
<xsl:template match="{0}@*|{0}node()"