Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XSL "Element type ... must be declared" Errors

Reply
Thread Tools

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

 
 
ReignMan
Guest
Posts: n/a
 
      10-07-2003
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 "xslutput" 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 xmlnssl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xslutput
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why must and must not be "final" ? NeoGeoSNK Java 25 11-24-2006 02:02 AM
xsl:element must have a value for name - help ina XML 4 06-13-2006 11:03 AM
XSL Question tp xsl:for-each and xsl:variable schaf@2wire.ch XML 1 05-27-2005 09:25 PM
Error: Webcontrol must have items of type X. SubLinks is of type Y ~~~ .NET Ed ~~~ ASP .Net Building Controls 2 11-10-2004 05:15 PM
Errors, errors, errors Mark Goldin ASP .Net 2 01-17-2004 08:05 PM



Advertisments