xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David N Bertoni/CAM/Lotus" <David_N_Bert...@lotus.com>
Subject Re: XSLT output question
Date Thu, 20 Apr 2000 14:42:26 GMT

Generally, when you just get the stylesheet back from the transform, it
means that the XSL namespace is incorrect in the stylesheet.  The proper
value is "http://www.w3.org/1999/XSL/Transform".  The version attribute is
required by the spec, but it came along fairly late in the game, so it
looks like Xalan J is being generous if it's missing.

Can you post the stylesheet so we can have a look at it?

By the way, this question really belongs on the Xalan list -- you're likely
get quicker responses to your questions there.


                    Eric Hodges                                                          
                    <harmony2@swb        To:     general@xml.apache.org               
                    ell.net>             cc:     (bcc: David N Bertoni/CAM/Lotus)     
                                         Subject:     XSLT output question               
                    08:32 PM                                                             
                    respond to                                                           

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),
'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