August 2003
Intermediate to advanced
624 pages
15h 3m
English
I think the best way to teach a programming language is to start with a very simple, contrived example. So, here is an XSLT version of Hello World.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<HelloWorld>Howdy!</HelloWorld>
</xsl:template>
</xsl:stylesheet>
|
Here is our source document.
<?xml version="1.0" encoding="UTF-8"?> <Goodbye> you all </Goodbye> |
We can run the source document through an XSLT processor using our HelloWorld.xsl stylesheet and produce the following result.
<?xml version="1.0" encoding="UTF-8"?> <HelloWorld> Howdy! </HelloWorld> ... |