Hi Maarte,

You're using something which is not XSLT.  xsl:document is part of the XSLT
1.1 working draft, and is also part of the 2.0 working draft (I think), but
none of those working drafts are final, so xsl:document is not implemented
by Xalan.  The fact that the version number of Xalan is 1.1 does not imply
that it implements XSLT 1.1.

Some processors have implemented the 1.1 working draft, so you may want to
use one of those processors.

Dave



                                                                                       
                    
                    Maarte van Hattem                                                  
                    
                    <Maarte.van.Hattem@pallas-a        To:     
[EMAIL PROTECTED]                    
                    thena.com>                         cc:     (bcc: David N 
Bertoni/CAM/Lotus)            
                                                       Subject:     xsl:document not 
working               
                    07/27/2001 07:50 AM                                                
                    
                    Please respond to xalan-dev                                        
                    
                                                                                       
                    
                                                                                       
                    



Hi,

I downloaded the latest version of Xalan (1.1).
According to the documentation the xsl:document is supported in 1.1. But I
got the following error when running testXSLT:

XSL Warning: Unknown XSL element: document, line 4, offset 35
XSL Warning: Unknown XSL element: document, line 12, offset 37
Parse of multiple.xsl took 10 milliseconds
========= Parsing aap.xml ==========
Parse of aap.xml took 10 milliseconds
=============================
Transforming...

transform took 0 milliseconds

Total time took 10 milliseconds


The source code looks like:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.1">
  <xsl:template match="process">
    <xsl:document href="toc.html">
        <html>
          <head><title>Table of Contents</title></head>
          <body>
            toc
          </body>
        </html>
    </xsl:document>
    <xsl:document href="frame.html">
        <html>
          <head><title>Frame</title></head>
          <body>
            frame
          </body>
        </html>
  </xsl:document>
  </xsl:template>
</xsl:stylesheet>


What do I wrong?

with kind regards.
Maarte

Email: [EMAIL PROTECTED]
Phone: (+31) (0)24 6843495
Fax:   (+31) (0)24 6843496




Reply via email to