Supported XSLT tokens <xsl:template match … >
| following-sibling::* | Tests all following siblings. |
| preceeding-sibling::* | Tests all preceeding siblings. |
| / | Tests immediate child as part of a pattern match. |
| // | Tests all descendants as part of a pattern match. |
| @ | Tests attributes (used in predicates). |
| [ | Start predicate test. |
| ] | End predicate test. |
| position() | Gets current position relative to current axis |
| last() | Gets the position of the last XML element of the current axis. |
| first_of_type() | Test is current element is first of its type. |
| last_of_type() | Test is current element is last of its type. |
| first_of_any() | Test is current element is first in its axis. |
| last_of_any() | Test is current element is last in its axis. |
| name() | Gets the name of the current element (for tests). |
| not | Returns logical NOT operator of contents of following brackets(). |
| and | Applies logical AND to left and right expressions. |
| or | Applies logical OR to left and right expressions. |
| ( | Used to specify precedence when building complex expressions. |
| ) | Used to specify precedence when building complex expressions. |
| + | Used for addition of left and right expressions. |
| - | Used for subtraction of left and right expressions. |
| * | Used for multiplication of left and right expressions. |
| div | Used for division of left and right expressions. |
| mod | Used for modulus of left and right expressions. |
| = | Used to test if left and right expressions are equal. |
| != | Used to test if left and right expressions are not equal. |
| < | Used to test if left expressions is less than the right expressionl. |
| <= | Used to test if left expressions is less than or equal to the right expression. |
| > | Used to test if left expressions is greater than the right expression. |
| >= | Used to test if left expressions is greater than or equal to the right expression. |
| Supported XSLT tokens <xsl:value of select … /> | |
| tokens: | In addition to the tokens available for <xsl:template match=”…”>, the following can be used with <xsl:value-of select=”…”/> |
| parent::* | Tests the parent element. |
| ancestor::* | Tests all ancestors. |
| selfr::* | Tests current element. |
| ancestor-or-self::* | Tests all ancestors including the current element. |
| selfr::* | Tests current element. |
| descendand-or-self::* | Tests all descendants including the current element. |
| attribute:: | Tests attributes of current element. |
| text() | Gets the text inside the current node (to next tag, max 1000 characters). |
| XSLT <xsl:apply templates/> | This XSLT command is used inside the <xsl:template match=“…”> </xsl:template> structure to tell the system to continue processing after the template is matched. It also acts as a marker. Anything before it is output when the start XML element is matched with the template pattern. If it is omitted, the element will be hidden. Anything following it is output when the end XML element of the match occurs. Typically, line endings such as a hard return are places after <xsl:apply-templates/> |
| XSLT <xsl:text> | The <xsl:text> … </xsl:text> construct is used to tell the system that the content of the construct is to be treated as isolated text and therefore will not be inherited. |