Skip to content

ablwr/xslt_miap_2016

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published