Anyone here good with XSLT?
Evan Leibovitch
evan-ieNeDk6JonTYtjvyW6yDsg at public.gmane.org
Wed Aug 4 22:54:04 UTC 2010
OK, here goes. I have a stylesheet:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0">
<xsl:output method="html"/>
<xsl:template match="/">
<xsl:message>Starting root</xsl:message>
<xsl:apply-templates />
<xsl:message>Ending root</xsl:message>
</xsl:template>
<xsl:template match="head">
<xsl:message>Doing head</xsl:message>
</xsl:template>
<xsl:template match="body">
<xsl:message>body</xsl:message>
</xsl:template>
</xsl:stylesheet>
and an input file:
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<p>Hello World</p>
</head>
<body>
<p>Goodbye World</p>
</body>
</html>
When I process this I would expect to see the messages from the "head" and
"body" templates be executed (and the message showing). But they don't. Any
idea what I'm doing wrong?
Thanks!
- Evan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/legacy/attachments/20100804/8af79097/attachment.html>
More information about the Legacy
mailing list