Subject: FW: [xsl] multiple output files in xslt 1.0 From: Bas Alberts <bas.alberts@xxxxxxxxxxxx> Date: Thu, 16 Aug 2001 11:12:43 +0200 |
By the way, the xmlns:xsl="http://www.w3.org/XSL/Transform/1.0" is not the problem. I copied that from some <redirect:write> example. With xmlns:xsl="http://www.w3.org/1999/XSL/Transform" the problem is exactly the same. Greetings, bas.alberts@xxxxxxxxxxxx -----Original Message----- From: Bas Alberts [mailto:bas.alberts@xxxxxxxxxxxx] Sent: Thursday, August 16, 2001 11:02 To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' Subject: [xsl] multiple output files in xslt 1.0 Importance: High Hi all, What would you say is the quickest way to produce multiple output documents when using the following environment: - XSLT 1.0 - Jakarta-Tomcat 3.2.1 (JSP) - Jakarta XSL-Taglibs Since the xsl-taglibs come with Xalan.jar it contains Redirect.class, which should enable me to use, but I can't get it right. Other transformations work fine with the <xsl:apply> tag from xsl-taglibs. My JSP file: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <%@taglib uri="http://jakarta.apache.org/taglibs/xsl-1.0" prefix="xsl" %> <html> <head> <title>Update</title> </head> <body> <textarea> <xsl:apply xsl="provider.xml" xsl="testje.xsl"/> <textarea> </body> </html> My XML document: <?xml version="1.0" encoding="iso-8859-1"?> <dummy/> My XSL document: <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/XSL/Transform/1.0" xmlns:lxslt="http://xml.apache.org/xslt" xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect" extension-element-prefixes="redirect"> <xsl:template match="/"> <xsl:text>Before redirect.</xsl:text> <redirect:write file="redirected.txt" method="text"> <xsl:text>Inside redirected.txt</xsl:text> </redirect:write> <xsl:text>After redirect.</xsl:text> </xsl:template> </xsl:stylesheet> My error message (root cause): javax.servlet.jsp.JspException: org.apache.xalan.xslt.XSLProcessorException: The root element is required in a well-formed document. at org.apache.taglibs.xsl.ApplyTag.doEndTag(ApplyTag.java:274) Greetings, bas.alberts@xxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] multiple output files in , jay | Thread | RE: [xsl] multiple output files in , Bas Alberts |
[xsl] multiple output files in xslt, Bas Alberts | Date | Re: [xsl] Evaluating XPath expressi, Jeni Tennison |
Month |