SXSW 2007 : MyTimes    XSLT Widgets  

The widgets shown in the preceding examples used JSON data. The JSON data can then be read into an HTML template using the syntax $widget.data.etc. Simple control structures like {section} and {if} can be used to loop through the data or conditionally display data based on user preferences.

However, many sources deliver data via XML. In this case, converting to the data to JSON and using the same template technology would be not beneficial, since a powerful language for manipulating XML already exists: XSLT.

MyTimes widgets that receive data in XML use XSLT templates.

 
  

1 of 13
Text Author: Joe Orr   Copyright Notice Screenshot By: Joe Orr