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

FW: multiple output files in xslt 1.0

Subject: FW: multiple output files in xslt 1.0
From: Bas Alberts <bas.alberts@xxxxxxxxxxxx>
Date: Thu, 16 Aug 2001 11:12:43 +0200
xslt redirect
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:  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

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.