ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Knights" <br...@knightsofthenet.com>
Subject RE: Style task
Date Tue, 19 Jun 2001 21:12:52 GMT
I use it all the time. My xsl engine is Saxon 6.3 

I notice you don't have a namespace declaration for the xsl namespace.

try adding this attribute to your stylesheet element

xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

HTH

> -----Original Message-----
> From: Frank Carver [mailto:frank@efsol.com]
> Sent: Tuesday, June 19, 2001 1:27 PM
> To: ant-user@jakarta.apache.org
> Subject: Style task
> 
> 
> 
> Is anyone using the style task? After some battling and removing other
> parsers from my classpath and lib/ext directory I now have it running,
> but I still can't make it actually process my files, even for a very
> simple test.
> 
> I keep getting a message saying that the stylesheet needs a
> version attribute; but it has one!
> 
> My stylesheet is as follows:
> 
> <?xml version="1.0"?>
> <xsl:stylesheet version="1.0">
> <xsl:template match="test">
> Hello '<xsl:value-of select="name"/>'
> </xsl:template>
> </xsl:stylesheet>
> 
> and my file is:
> 
> <?xml version="1.0"?>
> <test>
> <name>world</name>
> </test>
> 
> Can anyone help, please ?
> 
> -- 
> Frank Carver     frank@efsol.com    http://www.efsol.com/
> 
> 
> 

Mime
View raw message