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]>

Reply via email to