XSLT Processor


The Ten & Two XSLT Processor plugin brings the power of PHP’s XSL Extension to WordPress. Once enabled, the plugin creates three (3) powerful WordPress Shortcodes which can be used separately or in tandem to enrich your site with content from XML sources.

Files stored on your server can be used as a local sources. URLs can specify remote sources, such as feeds and API services. And, after enabling the plugin’s two Custom Post Types XSL Stylesheets and XML Documents – you can also manage stylesheets and data directly in WordPress.

Getting Started

Shortcodes

Stylesheets

The XSLT Processor plugin includes a number of useful XSL templates that you can use in your own projects. They are grouped into five (5) XSL files.

  • date.xsldate-format,date-microtime
  • file.xslfile-exists-local,file-exists-remote,file-listing-local
  • string.xslstring-replace,string-upper,string-lower,string-title-case,string-trim,string-rtrim,string-ltrim,string-maxlength,string-maxwords,string-add-slashes,string-urlencode,string-strip-tags,string-nl2br,string-entity-decode,string-to-nodeset
  • util.xslutil-hash-data,util-print-nodes,util-print-node-names,util-super-global
  • wp.xslwp-post-item,wp-post-meta,wp-sanitize-title,wp-select-csv,wp-select-xml,wp-size-format

How To

The emphasis in the following examples is on function rather than design. The assumption is that you’ll want to customize and polish the layout. So, HTML in the stylesheets is kept to a minimum.

Further Reading

Go deep.

  • XML – eXtensible Markup Language – is a standard for storing and transferring structured data in a format that is readable by both humans and machines.
  • XSL – eXtensible Stylesheet Language – is a language for transforming XML documents into new documents. Common result formats include XML, HTML, TEXT, JSON, and XSL-FO.
  • XPath , – XML Path Language – defines a compact method of selecting or referencing nodes within an XML document. It is built into XSL and used extensively within stylesheets.
  • XSLT – XSL Transformations – then, is the combined process: parsing the XML, applying the XSL stylesheet, and generating a document in the specified format.
  • XML Schemas are descriptions of XML documents. Documents following popular schemas are often freely available.