I got this figured out - I just put my <html:html> and <html:base> tag in my XSL stylesheet and now it works fine.
Still wondering if anyone has ideas on #3 though. Thanks, Matt -----Original Message----- From: Matt Raible [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 8:38 PM To: Tag Libraries Users List Cc: [EMAIL PROTECTED] Subject: JSPTL EA3 - x:transform tag and struts:html tag I downloaded the latest nightly build and this error went away. However, I now a few new issues: 1. If I call my JSP Page directly (which is contentType="text/xml"), the <html:html xhtml="true" locale="true"> is translated to <html lang="en" xml:lang="en">. But when I call it with the following transform code: <c:import url="/pages/index.jsp" var="xml"/> <c:import url="/styles/xsl-xhtml.jsp" var="xslt"/> <x:transform source="$xml" xslt="$xslt"/> It gets rendered as <html xhtml="" locale="">. 2. There is another struts tag <html:base/> that is rendered when I call the page directly, but not when I call it with the code above. 3. I'm wondering if anyone has suggestions for determining the XSL stylesheet to use above. I'd love to detect if the client is a WAP device, and if so, change the c:import to be url="/styles/xsl-wap.jsp". The rest of the struts tags (bean, html) seem to work fine, both in my $xml file and in my $xlst files. Sorry for the cross post to the Struts Dev list, but wanted to see if anyone has seen this behavior. Any ideas are appreciated. Thanks, Matt -----Original Message----- From: Shawn Bayern [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 3:11 PM To: Tag Libraries Users List Subject: Re: JSPTL EA3 - x:transform works, but error in tomcat Are you sure that <html:html> is producing a well-formed XML document (i.e., with a single root element)? Shawn On Mon, 14 Jan 2002, Matt Raible wrote: > I am trying to use the x:transform tag to render the following page (code > pasted below). The transformation works (displayed in browser correctly), > but the following error shows in tomcat's log: > > SystemId Unknown; Line 55; Column -1; Can not load requested doc: Document > root element is missing. > > Code from page > ----------------------------------------- > <%@ page language="java" %> > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> > > <%@ taglib uri="http://java.sun.com/jstl/ea/core" prefix="c" %> > <%@ taglib uri="http://java.sun.com/jstl/ea/xml" prefix="x" %> > > <c:import url="/styles/xsl-xhtml.jsp" var="xslt"/> > <x:transform xslt="$xslt"> > <html:html locale="true" xhtml="true"> > > <properties> > <author>Matt Raible</author> > <title><bean:message key="index.title"/></title> > <heading><bean:message key="index.heading"/></heading> > </properties> > > <body> > > <!-- TODO: Remove ALL HTML --> > <logic:notPresent name="database" scope="application"> > <span class="error"> > ERROR: User database not loaded -- check servlet container logs > for error messages. > </span> > <hr /> > </logic:notPresent> > > <logic:notPresent name="org.apache.struts.action.MESSAGE" > scope="application"> > <span class="error"> > ERROR: Application resources not loaded -- check servlet container > logs for error messages. > </span> > </logic:notPresent> > > <ul> > <li><html:link page="/do/editRegistration?action=Create"><bean:message > key="index.registration"/></html:link></li> > <li><html:link page="/logon.jsp"><bean:message > key="index.logon"/></html:link></li> > </ul> > > > <html:link page="/do/tour"> > <bean:message key="index.tour"/> > </html:link> > > > </body> > </html:html> > > </x:transform> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>