You need to use a namespace-aware parser for your stylesheet.

Gary

> -----Original Message-----
> From: Aleksi Kallio [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 29, 2002 4:09 AM
> To: [EMAIL PROTECTED]
> Subject: Stylesheet requires attribute: version
> 
> 
> I'm getting this:
> 
> javax.xml.transform.TransformerConfigurationException: 
> stylesheet requires attribute: version at
> org.apache.xalan.processor.TransformerFactoryImpl.newTransform
> er(TransformerFactoryImpl.java:684) 
> 
> 
> 
> My stylesheet should be OK, so I just can't figure out whats wrong.
> 
> 
> 
> Stylesheet is:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";> 
> <xsl:template match="root"> <out><xsl:value-of 
> select="."/></out> </xsl:template> </xsl:stylesheet>
> 
> 
> (it's a single line because I've embedded it into Java code)
> 
> 
> 
> 
> 
> 

Reply via email to