Edit online

XSLT 3.0 Text Value Templates

Oxygen XML Developer offers built-in support for XSLT 3.0 Text Value Templates, including content completion to present the variables, functions, and parameters from the current context and syntax highlighting.

A text node in the stylesheet is treated as a text value template if the following things are true:
  • It is part of a sequence constructor or a child of an <xsl:text> instruction.
  • There is an ancestor element with an @[xsl:]expand-text attribute and on the innermost ancestor element that has such an attribute, the value of the attribute is yes.
Example:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
expand-text="yes"
version="3.0">

  <xsl:param name="seq" as="xs:string*" select="'c', 'a', 'b', 'z'"/>
  <xsl:template name="main">
    {sort($seq)}
  </xsl:template>
</xsl:stylesheet>

For more information, see: W3C XSLT Specifications: Text Value Templates.