There's no "head" element in your source.xml -- this is why the
xsl:apply-templates in your code does not select anything to be matched
against your templates and, therefore, no processing is being performed.
=====
Cheers,
Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL
"chris" <> wrote in message
news:koiVa.2872$...
> Hi,
>
> I'm trying to transform html into html but somethings wrong. I get the
> following output on a validated xhtml file (the head and body are
> non-empty). I want to output the head, then perform a transformation on
> the body (to add a css menu) but I can't even get the contents of the
> head...
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!DOCTYPE html
> PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html/>
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:transform version="1.0"
> xmlns
sl="http://www.w3.org/1999/XSL/Transform">
>
> <xsl
utput
> method = "xml"
> version = "1.0"
> omit-xml-declaration = "no"
> encoding = "UTF-8"
> indent = "yes"
> doctype-public = "-//W3C//DTD XHTML 1.0 Strict//EN"
> doctype-system =
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
>
>
> <xsl:template match="/">
> <html>
> <xsl:apply-templates select="head"/>
> </html>
> </xsl:template>
>
> <xsl:template match="head">
> <head>
> <xsl:value-of select="." />
> </head>
> </xsl:template>
> </xsl:transform>
>
> Saxon was used as the XSLT processor with the following command:
>
> java net.sf.saxon.Transform -o x.html index.html xsl/add-menu.xsl
>
>
>
>
> Cheers,
> Danx
>