tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Bayern <bay...@essentially.net>
Subject Re: JSPTL EA3 - x:transform works, but error in tomcat
Date Tue, 15 Jan 2002 22:10:53 GMT
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:taglibs-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>
> 


--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>


Mime
View raw message