You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by LAMY Olivier <LA...@accor-hotels.com> on 2002/09/03 17:41:10 UTC

Re: Redirect problem

use <redirect:write file="test.xml"> instead of select 
Question : is-it possible to have something as an append attributes which
precise writing to the end of file ??

----- Original Message ----- 
From: Luke Reeves <ma...@oceanlake.com>  
To: 'xalan-j-users@xml.apache.org' <mailto:'xalan-j-users@xml.apache.org'>  
Sent: Tuesday, September 03, 2002 5:48 PM
Subject: Redirect problem


I'm trying to use the redirect extension of Xalan and having major issues.
My XSL sheet begins like: 

        <?xml version="1.0"?> 
        <xsl:stylesheet xmlns:xsl=" http://www.w3.org/1999/XSL/Transform
<http://www.w3.org/1999/XSL/Transform> " version="1.0" 
            xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect" 
            extension-element-prefixes="redirect"> 

And I'm using the following XSL snippet to redirect output: 

        <xsl:template match="description"> 
          <redirect:write select="test.xml"> 
                        <html><head><title>Test</title></head><body> 
                                <xsl:apply-templates select="test1"/> 
                        </body></html> 
                </redirect:write> 
        </xsl:template> 

But I constantly get the following error when running the command-line
transform: 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "
http://www.w3.org/TR/REC-html40/loose.dtd
<http://www.w3.org/TR/REC-html40/loose.dtd> "> 
file:///C:/mscope/config.xsl; <file:///C:/mscope/config.xsl;>  Line 10;
Column 38; java.lang.reflect.InvocationTargetException 

The doctype is there in the error; removing that line from the XSL sheet
just causes the parser to show the next line as the error.  Does anyone know
what's going on here?  Thanks!

        Luke Reeves, luke@oceanlake.com 
        http://www.neuro-tech.net/ <http://www.neuro-tech.net/>  



	
**********************************************************************  
Ce message électronique et tous les fichiers joints ainsi que  les
informations contenues dans ce message (ci après "le message"), sont
confidentiels et destinés exclusivement à l'usage de la  personne à laquelle
ils sont adressés. Si vous avez reçu ce message par erreur, merci  de le
renvoyer à son émetteur et de le détruire. Toute diffusion, publication,
totale ou partielle ou divulgation sous quelque forme que ce soit non
expressément autorisées de ce message, sont interdites.  
	
**********************************************************************  
This e-mail, any attachments and the information contained (herein " the
message") are confidential and intended solely for the use of the
addressee(s) if you have received this message in error please send it back
to the sender and delete it. Unauthorized publication, use, dissemination or
disclosure, either whole or partial, of this  message is strictly
prohibited.