summaryrefslogtreecommitdiffstats
path: root/test/w3c/confXPath.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'test/w3c/confXPath.xsl')
-rw-r--r--test/w3c/confXPath.xsl17
1 files changed, 16 insertions, 1 deletions
diff --git a/test/w3c/confXPath.xsl b/test/w3c/confXPath.xsl
index 71286ce..bb65375 100644
--- a/test/w3c/confXPath.xsl
+++ b/test/w3c/confXPath.xsl
@@ -204,7 +204,7 @@ is of the same type as array123 -->
<content xmlns="http://www.w3.org/2005/07/scxml">foo</content>
</xsl:template>
-
+<xsl:template match="//conf:someInlineVal">123</xsl:template>
<!-- this returns something that is guaranteed not to be the ID of the current session -->
@@ -270,6 +270,11 @@ events which cause the test to fail. The default value provided here is pretty
<xsl:attribute name="namelist">$Var<xsl:value-of select="." /></xsl:attribute>
</xsl:template>
+<!-- this produces a reference to an invalid namelist, i.e. on that should cause an error -->
+<xsl:template match="//@conf:invalidNamelist">
+ <xsl:attribute name="namelist">"foo"</xsl:attribute>
+</xsl:template>
+
<!-- exprs that return the value of the event fields -->
<xsl:template match="//@conf:eventName">
@@ -419,6 +424,11 @@ know if we can make this strong in XPath 1.0 -->
</xsl:attribute>
</xsl:template>
+<!-- test that the specified var has the value specified by <conf:someInlineVal> -->
+<xsl:template match="//@conf:idSomeVal">
+ <xsl:attribute name="cond">Var<xsl:value-of select="." /> = 123</xsl:attribute>
+</xsl:template>
+
<!-- test on the value of two vars -->
<xsl:template match="//@conf:compareIDVal">
<xsl:attribute name="cond">
@@ -513,6 +523,11 @@ is the second argument -->
<xsl:attribute name="cond">$_event/data = <xsl:value-of select="."/></xsl:attribute>
</xsl:template>
+<!-- test that _event.data is set to the value specified by <conf:someInlineVal> -->
+<xsl:template match="//@conf:eventdataSomeVal">
+ <xsl:attribute name="cond">_event.data = 123</xsl:attribute>
+</xsl:template>
+
<xsl:template match="//@conf:emptyEventData">
<xsl:attribute name="cond">not($_event/data/*)</xsl:attribute>
</xsl:template>