optionally pronounced sport smelt
SportsMLT is a companion XSLT library of scripts to render SportsML into other languages -- first and foremost being HTML.
SportsMLT is not affiliated with the IPTC, but is released under the GNU Public License here at SportsStandards.org.
A home on SourceForge.net has been established to aid the SportsMLT development community.
SportsMLT has not been tested for every XSLT engine out there. It has been developed and tested on:
A few errors with SportsMLT have been found when interpreted by the Sablotron engine.
The top-level sportsmlt.xsl stylesheet file is the "mother stylesheet" that includes the rest of the xsl function library and where you will set several system variables.
After sportsmlt.xsl identifies the fixture (the term used to describe document-type) and league, it looks in this file -- /resources/fixture-formatter.xml – to see what template is assigned to it. Any time a new presentation template is created or a new fixture added to the content inventory, this file will need to be updated to make the transform work.
These are a series of xml-compliant templates –- in /templates/ -– that contain the html and .css markup. Embedded in them are a series of tags (example: <so:player-name/>) that, when processed by the function library, represent the SportsML data.
If you know HTML, you can easily rearrange the templates to make simple changes and restructure the existing data in a format you prefer. Or change the look by altering CSS tags.
The main stylesheet includes references to XSL function libraries that process many of the so: tags inside the presentation templates. The core file contains functions across sports, while sport-specific functions have their own file in the /functions/ folder.
Occasionally, the xsl functions perform lookups in files in the /resources directory. For example, one set of resource files stores team names and team keys (in /resources/teams). It is important to keep these up-to-date.
HTML markup in the template files allow you to make many cosmetic changes just by editing a companion CSS stylesheet. This is the easiest way to manipulate font sizes, table sizes and colors. The coding also allows you to customize display properties by sport.