473,382 Members | 1,615 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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:11:3: Element type "xsl:output" must be
declared.
[Error] 990S2html.xsl:12:25: Element type "xsl:template" must be
declared.
[Error] 990S2html.xsl:14:7: Element type "html" must be declared.
[Error] 990S2html.xsl:14:13: Element type "head" must be declared.
[Error] 990S2html.xsl:14: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 """><!ENTITY nbsp
" "><!ENTITY iexcl "¡"><!ENTITY cent "¢"><!ENTITY pound
"£"><!ENTITY curren "¤"><!ENTITY yen "¥"><!ENTITY
brvbar "¦"><!ENTITY sect "§"><!ENTITY uml "¨"><!ENTITY
copy "©"><!ENTITY ordf "ª"><!ENTITY laquo "«"><!ENTITY
not "¬"><!ENTITY shy "­"><!ENTITY reg "®"><!ENTITY macr
"¯"><!ENTITY deg "°"><!ENTITY plusmn "±"><!ENTITY sup2
"²"><!ENTITY sup3 "³"><!ENTITY frac14 "¼"><!ENTITY
frac12 "½"><!ENTITY frac34 "¾">]>
<xsl:stylesheet 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="script 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 5116

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

Similar topics

6
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? ...
1
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....
5
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: ...
4
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...
1
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...
0
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....
0
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...
1
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
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.