12 Matching Annotations
  1. May 2020
    1. Regular Expression Functions There are three regular-expression functions that operate on strings: matches() tests if a regular expression matches a string. replace() uses regular expressions to replace portions of a string. tokenize() returns a sequence of strings formed by breaking a supplied input string at any separator that matches a given regular expression. Example:   

      Test question: how many are there regular-expression functions in XSLT?

    2. position()

      The position function returns a number equal to the context position from the expression evaluation context.

    3. What’s the difference between xsl:value-of, xsl:copy-of, and xsl:sequence? xsl:value-of always creates a text node. xsl:copy-of always creates a copy. xsl:sequence returns the nodes selected, subject possibly to atomization. Sequences can be extended with xsl:sequence.

      What’s the difference between xsl:value-of, xsl:copy-of, and xsl:sequence?

    4. <xsl:variable name="date" select="xs:date('2003-11-20')"/>

      How to declare the date in the variable in XSLT 2?

    5. Types XSLT 2.0 allows you to declare: The type of variables. The return type of templates. The type of sequences (constructed with xsl:sequence) The return type of (user-declared) functions. Both the type and required type of parameters.

      What are the types that one can declare in XSLT 2?

    1. <xsl:for-each select="1 to 32">  <!-- Do something useful here --></xsl:for-each>

      How to create a loop in XSLT?

    2. One of the major new concepts in XPath 2.0 and XSLT 2.0 is that everything is a sequence.

      What is one of the major concepts in XPath 2.0 and XSLT 2.0?

    3. When you work with an XML document in XPath 2.0 and XSLT 2.0, you use the sequence in the same way as the tree structure in XPath 1.0 and XSLT 1.0.

      Sequence works as the tree structure.

  2. May 2019
  3. Oct 2018
    1. Provided here is a stylesheet (XSL file) that will convert RSS and Atom based OpenSearch search result feeds into HTML.
  4. Oct 2016
    1. Un fichier XSLT

      Définition de (règles/forme/façons de) transformation (et donc représentation).