Advanced Topics in XSLT

R. Alexander Milowski

milowski@sims.berkeley.edu

School of Information Management and Systems

#1

Modular Stylesheets

#2

xsl:include

#3

xsl:import

#4

xsl:apply-imports

#5

Importing Example

#6

Named Templates

#7

Calling Named Templates

#8

Named Template Parameters

#9

Modes

#10

Associating a Template with Modes

#11

Using a Mode

#12

Keys

#13

Key Declarations

#14

Using Keys

#15

Key Example - Cross References

#16

Grouping via Keys

#17

Grouping Strategy

  1. Define a key for the value you want to group by.

  2. Iterate each unique value of the key.

  3. Access the key with the value from (2) to get each grouping.

#18

Finding Unique Key Values

#19

Grouping Example

#20

Keys & Processing Costs

#21

Numbering with XSLT

#22

excluding namespace prefixes

#23

Exclusion Example

#24

Namespaces Aliases

#25

Namespaces Aliases - Example

#26

messages