Category: How To

  • Google Sheets (.html)

    by

    Note: this is NOT the recommended method for using Google Sheets data with the XSLT Processor plugin. Export your sheets as .csv files and use Missing input csv file ” instead. For comparison, the code samples here use the same data as presented in the csv shortcode documentation, but exported as Sheet1.html rather than Sheet1.csv.…

    Continue reading »

  • RSS feeds

    by

    Wikipedia : RSS RSS Advisory Board : RSS 2.0 Specification New York Times National Center for Environmental Information

    Continue reading »

  • 102 – XML Namespaces

    by

    XML Namespaces are used to specify and separate vocabularies within XML documents. Although they are not required, it is common for generated XML to include, at a minimum, a default namespace definition in the root node. Atom feeds, for instance, open with <feed xmlns=”http://www.w3.org/2005/Atom”>, and then often define more namespaces specific to the feed’s subject…

    Continue reading »

  • PHP Callbacks

    by

    The XSLT Processor Plugin includes a number of XSL Stylesheets with general-purpose templates. Some of those templates are pure XSL, but many rely on PHP to generate their results. Some call built-in PHP functions directly. For instance, the string-replace template calls str_replace(). Others, like the date-format template, call custom plugin methods to better handle defaults and…

    Continue reading »

  • JSON

    by

    The value returned by the ‘xslt_select_xml’ shortcode can be formatted as JSON, rather than XML, by adding the attribute ‘format=”json”‘. shortcode The values returned by can be formatted as JSON, rather than XML, by adding the attribute format=”json”. javascript To bring the data into page scope, we can use a “Custom HTML” block to insert…

    Continue reading »

  • Atom Feeds

    by

    Wikipedia : Atom (web standard) W3C : Introduction to Atom National Weather Service Alerts for OR

    Continue reading »

  • BeerXML

    by

    BeerXML is an open data standard used to exchange recipes and related beer brewing information. There are websites and mobile apps that support the standard. There are development packages available for a variety of software platforms and programming languages. It’s used by professionals to automate processes, and by hobbyists to share favorites. In short, it’s…

    Continue reading »

  • 101 – XSL Styesheets

    by

    This is a simplified example of using the <NODATA/> shortcode. The sample.xml file contains some data, and the sample.xsl file contains templates for reading that data and writing the final output. We can specify just the file names in the shortcode attributes here, without additional path information, because the parent directory for both files is listed in the plugin’s “Local File…

    Continue reading »