17 Matching Annotations
  1. May 2022
  2. Mar 2022
    1. Good use of XSLT to style an otherwise boring—and unfriendly—XML document (even though I dislike some of the specifics, like the font-size override).

      The template is here: https://feeds.buzzsprout.com/styles.xsl

      Why did we decide that every static site generator should invent their own ad hoc templating system again, instead just using XSLT, which is already standardized (and browser-native)?

  3. Oct 2021
    1. I finally get a chance to work on a redesign for our own site, so you're helping to make the exploration phase a lot of fun.

      I think I was talking about working on the Domain7 website and building it in Symphony. As soon as I had a working site, the team shut down the project and rebuilt the site on WordPress.

      At that point, I realized that Domain7 didn’t care about building the capacity of the team. They didn’t care about collaboration. They didn’t care about me as a contributor to the team.

  4. 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.

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

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