473,757 Members | 2,083 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XSL "Element type ... must be declared" Errors

I'm running JDK 1.4.0_01, Xalan2.5.1 and Tomcat 4.1.27. XSL
transformations work, yet when running in debug mode (Eclipse IDE), I
get the following:

[Error] 990S2html.xsl:3 :80: Element type "xsl:stylesheet " must be
declared.
[Error] 990S2html.xsl:1 1:3: Element type "xsl:output " must be
declared.
[Error] 990S2html.xsl:1 2:25: Element type "xsl:templa te" must be
declared.
[Error] 990S2html.xsl:1 4:7: Element type "html" must be declared.
[Error] 990S2html.xsl:1 4:13: Element type "head" must be declared.
[Error] 990S2html.xsl:1 4:63: Element type "script" must be declared.

<snip />

The beginning of my stylesheet is:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet [<!ENTITY quot """><!ENTIT Y nbsp
" "><!ENTIT Y iexcl "¡"><!ENTIT Y cent "¢"><!ENTIT Y pound
"£"><!ENTIT Y curren "¤"><!ENTIT Y yen "¥"><!ENTIT Y
brvbar "¦"><!ENTIT Y sect "§"><!ENTIT Y uml "¨"><!ENTIT Y
copy "©"><!ENTIT Y ordf "ª"><!ENTIT Y laquo "«"><!ENTIT Y
not "¬"><!ENTIT Y shy "­"><!ENTIT Y reg "®"><!ENTIT Y macr
"¯"><!ENTIT Y deg "°"><!ENTIT Y plusmn "±"><!ENTIT Y sup2
"²"><!ENTIT Y sup3 "³"><!ENTIT Y frac14 "¼"><!ENTIT Y
frac12 "½"><!ENTIT Y frac34 "¾">]>
<xsl:styleshe et xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output
method="html"
encoding="ISO-8859-1"
media-type="text/html"
cdata-section-elements="scrip t style"
doctype-system="http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
/>
<xsl:template match="/">

<html>

<snip />
This doesn't happen in XMLSpy or when using the MSXML libs, and the
transformations work fine. I've read that this might be classpath /
classloader related, and I've moved current Xalan & Xerces libs in and
out of the endorsed directories in both the JRE and Tomcat libraries
folders with no effect. Any suggestions?

Thanks.
Jul 20 '05 #1
0 5161

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
14319
by: Web Developer | last post by:
Hi, I come across the term "type checking" very often in my readings on C++, and have never heard it in Java. Besides the simplistic answer that it checks the "type", what more does it mean? WD
1
18368
by: Derek | last post by:
I am writing a web application for job seekers, and am adding a section that allows administrators to upload jobs to the system via xml. I have used an xml schema to validate the xml they upload. The website runs on IIS5 using classic ASP, and the xml validation is done in a .NET component written in C# that is registered for COM interop on the webserver. I have a test application to test the .NET component, and that application does...
5
3966
by: Alfredo Magallón Arbizu | last post by:
Hi, I have an ASP.NET app that works perfectly in Windows Server 2003, but fails in Windows 2000. It fails when trying to read the data in an Excel Workbook (range.value)... The error is: COMException (0x80020008): Bad Variable Type
4
6926
by: Tom Eldridge | last post by:
Hi all I'm getting tons of these errors when running the w3c validator on my template page. Basically it will say for example: element "TITLE" undefined. Do I need to put this into lowercase or uppercase or have I got completely the wrong end of the stick and need to define my doctype to another? Currently I have this:
1
4746
by: tankbattle | last post by:
That is, what's the difference between <complexType name="Address" final="restriction"> <sequence> <element name="name" type="string"/> <element name="street" type="string"/> <element name="city" type="string"/> </sequence> </complexType> and <complexType name="Address" block="restriction">
0
1273
subashini Thiyagarajan
by: subashini Thiyagarajan | last post by:
Any one can help me in this error Error Type: Provider (0x80040E21) Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done. /manage/fiber/change.asp, line 90 line 90: RSAdd.Fields("attachment") = attachment (i am taking it to the database)
0
1481
by: Gregory Gadow | last post by:
We have a number of development machines in our IT department, all running the same version of VS 2005 sp 1. Our company website and several compiled components were all written in VB.Net 2.0 using one of those machines, our "main dev." When I pull up the website in the VS IDE on that one machine, everything is fine. On any of the other machines, however, opening the website opens the site, then fills the Error List with just over a...
1
8625
by: sarveshscjp061 | last post by:
org.xml.sax.SAXParseException : Element type "web-app" must be declared this problem occurs when i start the tomcat 4.0.1 how do i solve this problem? thanks.
1
12328
by: mato81 | last post by:
Hi all! I am a newbie to WSDL. I have a questions which has been driving me crazy... If I would have a WSDL with a types element somewhat like below, what is the point of the third last row "<s:element name="string" nillable="true" type="s:string"/>". Why is it there and what is it for? ... <wsdl:types> <s:schema elementFormDefault="qualified" targetNamespace="http://www.home.NET"> <s:element name="GetWeather">
0
9487
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10069
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9904
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9884
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7285
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6556
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3828
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3395
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.