XML technologies / XSLT / Introduction to XSLT 2.0 / Getting started with XSLT and XPath / A comparison: expression vs. instruction

(Excerpt from "XSLT 2.0 & XPath 2.0" by Frank Bongers, Chapter 1.)

Now for the more interesting second template: the address should show the street and house number first, followed by the postal code and city. Two solutions are compared below: an old-fashioned but reliable one that also works with XSLT 1.0, and another that uses the new capabilities of XSLT 2.0/XPath 2.0.

   

   

back to top