xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Hodges <harmo...@swbell.net>
Subject XSLT output question
Date Thu, 20 Apr 2000 00:32:27 GMT
I'm trying to use the XSLTProcessor.process() method to apply an XSL stylesheet to an XML document.
 Here's the code:

      XMLParserLiaisonDefault liaison = new XMLParserLiaisonDefault ();
      XSLTProcessor xsltp = XSLTProcessorFactory.getProcessor(liaison);
      XSLTResultTarget target = new XSLTResultTarget(out);
      xsltp.process(new XSLTInputSource(xml), new XSLTInputSource(xsl), target);

'out' is a Writer. 'xml' and 'xsl' are Documents.

The problem is that the data written to 'out' looks like the XSL input, not the result of
applying that XSL to the XML.  There is one warning:
XSL Warning: xsl:stylesheet requires a 'version' attribute!

but nothing else to indicate failure.  Any clues?

View raw message