No description, website, or topics provided.
JavaScript CSS HTML XSLT
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
img
js
lib
plugin
scripts
test
Gruntfile.js
LICENSE
README.md
bower.json
index.html
package.json

README.md

GIMME AN X

GIMME AN L

GIMME AN S

GIMME A T

X S L T !

SLIDES FROM CLASS HERE

Intro to XSLT

How is XSLT different from other programming languages? XSLT can mediate between different documents.

Oxygen

I use command line validators but Oxygen is great for thorough debugging, so we will use Oxygen. Download here if you don't already have it, register for a free 30-day trial, and confirm code.

  • Setting it up
  • How to use it
  • Valid or not?

Understanding XPath

Resources

XSLT & XPath Cheatsheet

XPath/CSS/DOM/Selenium Rosetta Stone

XSL functions

Nodes

Elements, attributes, siblings, ancestors, children, descendents?

/Element @attribute parent/.. ../child(ren)

Notes on nodes

.. -- gets you up to the parent element

/.. -- gets you to the child element

ancestor::___ -- gets you up as high as it needs to go // -- finds everything underneath, like text//p finds all p under text, no matter how far down it is. All descendants.

select="following-sibling::_" -- all nodes after that node gt for greater than and lt for lesser than when testing logic statements. Can't use < or > because that is used in the XML structure.

Three conditional statements: if, choose, for each.

Examples

Workshoppin'

Command line tools

xsltproc (Macs)

ffmpeg