File: Data.xml
The Chapter
First Section
Second Section
Second Section, First Subsection
Second Section, Second Subsection
This one has no figure.
Second Section, Third Subsection
File: Transform.xslt
version="1.0">
[
]
match="para | chapter/title | sect1/title | sect2/title " />
Output:
[
First picture in book
]
[
Second picture in book
]
[
Fourth picture in book
]