[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: IE (6.0) says <xsl:document > not allowed in <xs

Subject: RE: IE (6.0) says <xsl:document > not allowed in <xsl:template> ?????
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 23 May 2005 09:11:11 +0100
msxml xsl result document
You seem to be trying to use the xsl:document that was defined in the
defunct XSLT 1.1 specification - this was a precursor to XSLT 2.0's
xsl:result-document. It's not implemented in MSXML, or in most other XSLT
1.0 processors.

(You probably got it from the second edition of my book. This was prepared
when it looked as if XSLT 1.1 would become a standard quite soon. There are
lots of qualifying statements saying "this is an XSLT 1.1 feature" but
people often miss them.)

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Bovy, Stephen J [mailto:STEPHEN.Bovy@xxxxxx] 
> Sent: 23 May 2005 03:28
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  IE (6.0) says <xsl:document > not allowed in 
> <xsl:template> ?????
> 
>  
> 
> <xsl:template match="/">                                          
>   <html>                                                          
>     <head>                                                        
>       <title>                                                     
>         <xsl:value-of select="local-name(/*)"/>                   
>       </title>                                                    
>     </head>                                                       
>     <body>                                                        
>  <frameset rows="13%,*" border="0" id="fscroll" name="fscroll">   
>    <frame name="head" id="head" src="head.html"                   
>       marginheight="2" marginwidth="2" scrolling="no" />          
>    <frame name="body" id="body" src="body.html"                   
>       marginheight="2" marginwidth="2" />                         
>  </frameset>                                                      
>       <xsl:apply-templates/>                                      
>     </body>                                                       
>   </html>                                                         
> </xsl:template>
> 
> <xsl:template match="/*">                                         
>   <xsl:document href="head.xml" >                                 
>   <table id="tb1" border="1" width="100%" cellpadding="5" >       
>     <tbody>                                                       
>       <tr bordercolor="yellow" bgcolor="Aqua">                    
>         <th colspan="18" >                                        
>           <xsl:value-of select="local-name(/*)"/>                 
>         </th>                                                     
>       </tr>                                                       
>       <tr bordercolor="yellow" bgcolor="#00CCFF">                 
>         <xsl:apply-templates select="/*/* 1 /*" mode="header"/>   
>       </tr>                                                       
>     </tbody>                                                      
>   </table>                                                        
>   </xsl:document >                                                
>   <xsl:document href="body.xml" >                                 
>   <table id="tb2" border="1" width="100%" cellpadding="5" >       
>     <tbody>                                                       
>       <xsl:apply-templates />                                     
>     </tbody>                                                      
>   </table>                                                        
>   </xsl:document >                                                
> </xsl:template>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.