Xalan looks only for type="text/xsl", not "text/xml".

I'm not sure if this is a bug or not.

Dave



                                                                                
          
                    Edwin Pratomo                                               
          
                    <[EMAIL PROTECTED]        To:     
[email protected]             
                    zer.org>             cc:     (bcc: David N 
Bertoni/CAM/Lotus)         
                    Sent by:             Subject:     xml-stylesheet PI         
          
                    [EMAIL PROTECTED]                                           
              
                    mputer.org                                                  
          
                                                                                
          
                                                                                
          
                    10/25/2001                                                  
          
                    06:46 PM                                                    
          
                                                                                
          
                                                                                
          



Hi,

Using XalanTransformer, I've found problem transforming an XML that
contains xml-stylesheet like:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xml" href="foo.xsl"?>
<doc/>

(foo.xsl exists, and Saxon works just fine on it. )

The two-arguments form of transform(), which should do it according to
the documentation, won't work.
The error message: XSL Error: Failed to process stylesheet!, line -1,
offset -1

any workaround for this?

TIA.

rgds,
Edwin.

--
PerlMonks home node: http://perlmonks.org/?node=pope
CPAN home: http://search.cpan.org/search?author=edpratomo




Reply via email to