JavaML, XSLT, and XSLTC

Overview

Conceiving JavaML

Two questions

Lexical tools stink

Benefits of XML

The Big Win

JavaML Example

Implementation

For more information…

XML Tools

XSL: eXtensible Style Language

XSL FO

XSLT

Null XSLT Style Sheet

Hello world stylesheet

Structure of XSLT stylesheet

Literal result stylesheets

input.xml

Classic substitution style
templates (a la JSP, GSP)

XPath expressions

Location paths

Location path steps

Pretty verbose,
so there’s shorthand…

XPath expressions

XSLT templates

Stylesheets are declarative

Conflict resolution

Identity transformation

<xsl:apply-templates …>

input.xml (revisited)

Stripping email elements

JavaML and XSLT

Browsing

<xsl:if …>

<xsl:choose …>

Templates can be subroutines

<xsl:for-each …>

Learning more about XSLT

Performance comparison

LotusXSL Profile

XSLTC

A full implementation
of XSLT-lite?