Your stylesheet is fine - the problem must lie elsewhere. How have you embedded the stylesheet into your java code?
cheers andrew > -----Original Message----- > From: Aleksi Kallio [mailto:[EMAIL PROTECTED] > Sent: 29 July 2002 12:09 > 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) > > > > > > > > > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.373 / Virus Database: 208 - Release Date: 01/07/2002 > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.373 / Virus Database: 208 - Release Date: 01/07/2002
