Exercise 12: Node-set Functions

A paragraph is represented by a para element.

Easy

Write a stylesheet that extracts the first paragraph of each sect1 in xpath.xml and outputs it in an HTML document.

Medium

Write a stylesheet that extracts the first paragraph of the document and each sect1 in xpath.xml.

Hard

Write a stylesheet that extracts the first paragraph of the document itself and each separate section of the document xpath.xml. Furthermore the title of each section should be replaced by the equivalent HTML header element. That is, sect1/title --> h1, sect2/title --> h2, etc.


Previous | Next | Top | Cafe con Leche

Copyright 2002, 2003 Elliotte Rusty Harold
Elliotte Rusty Harold
Last Modified October 18, 2002