There are Monsters in My Closet

or

How Not to Use XSLT

R. Alexander Milowski

milowski@sims.berkeley.edu

School of Information Management and Systems

#1

What's Wrong?

#2

Er... But I like if, choose, for-each...

#3

Pull vs. Push

#4

Make the Built-in Rules do the Work!

#5

xsl:value-of

#6

xsl:value-of and Descendants

#7

Use the Context

#8

Use the Context - Example

#9

Use Document Order

#10

Ranking Elements by Position

#11

xsl:for-each vs. templates

#12

Re-casting xsl:for-each as a Template

#13

Templates afford Extensibility

#14

Importing Stylesheets for Extensiblity

#15

Avoid // in Expressions

#16

Contracts, Schemas, and Stylesheets

#17

Use of xsl:element and Readability