In this SDK, we provide two ways to do this:. The following examples illustrate each method. You can use the code in these examples to test other samples in this SDK. When the following HTML page is loaded, the init function is invoked. This function loads the hello.
Arguably the most important part of any xsl:if instruction is its test attribute. Its expression must be true in order for the xsl:if content to be processed. In addition to looking for a specific element or attribute value as I did in the preceding example, you can do a variety of tests inside the expression. Alternatively, you can use the XPaths built-in function not to test for the opposite value:.