diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-07-03 01:10:03 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-07-03 01:10:03 (GMT) |
commit | b542369263782dc8b85893e218119ed070efa7b3 (patch) | |
tree | 0a18012a0af991755ceab98a457b46b79c14129f /test/w3c/confXPath.xsl | |
parent | 193a01614dc3290eec51745a91be65c166c3763b (diff) | |
download | uscxml-b542369263782dc8b85893e218119ed070efa7b3.zip uscxml-b542369263782dc8b85893e218119ed070efa7b3.tar.gz uscxml-b542369263782dc8b85893e218119ed070efa7b3.tar.bz2 |
Got ready for cmake3 and some minor fixes
Diffstat (limited to 'test/w3c/confXPath.xsl')
-rw-r--r-- | test/w3c/confXPath.xsl | 17 |
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> |