W3C schools – Tutorials
Using XSLT to transform XML docs
- cd catalog
for each catalog/cd grab the title and the artist - cd catalog
Same XML file with no XSLT applied - cd catalog 2
using template match=“/“ defines the whole document then finding the first match catalog/cd/title & catalog/cd/artist - cd catalog 3
same as 2 but with a for each so grabs all - cd catalog 4
same as 3 but using a value to filter - cd catalog 5
using sort, this time by artist - cd catalog 6
using if, this time price greater than 10 - cd catalog 7
using choose - cd catalog 8
using apply - cd catalog 9
using apply added an extra element
Oxygen – Examples
Using XSLT to transform XML docs
- using Axes or Axises
- using boolean node-sets as arguments for boolean() function
Coupland – Examples
Alphabetical listing of the sites
XSLT – hierarchical structure
XSLT – relational structure
- books3 xml The category is now an element instead of an attribute
Coupland – Examples
Listing of Categories and their sites
XSLT – hierarchical structure
XSLT – relational structure
- books5 xml The category is now an element instead of an attribute
Coupland – Examples
Contents Listing
XSLT – hierarchical structure
XSLT – relational structure
- books7 xml The category is now an element instead of an attribute
Lecture and workshop examples
Workshop – Example
DSA assigment Report
- Report xml
- Report html
- Report php XML + XSLT
- Report2 xml
- Report2 php XML + XSLT
The last one in both lists uses PHP to combine XML and XSLT
Workshop – Example
RSS
- bbc Sport whole page
BBC RSS feed and the BBC XSLT to produce a html page - bbc News part page
- twitter part page
- weather part page
On the last three I have wrote my own XSLT to display part of a page
Amazon traverse with the namespace removed
Amazon traverse with the correct namespace