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

Discussion in 'XML' started by ReignMan, Oct 7, 2003.

  1. ReignMan

    ReignMan Guest

    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:eek:utput" 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:eek:utput
    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.
     
    ReignMan, Oct 7, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Goldin

    Errors, errors, errors

    Mark Goldin, Jan 17, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    968
    Mark Goldin
    Jan 17, 2004
  2. Kevin Flood
    Replies:
    0
    Views:
    1,024
    Kevin Flood
    Sep 8, 2004
  3. Kevin Flood
    Replies:
    1
    Views:
    2,742
    Kevin Flood
    Sep 13, 2004
  4. Klaus Friese
    Replies:
    0
    Views:
    469
    Klaus Friese
    Nov 22, 2004
  5. Replies:
    1
    Views:
    3,617
    A. Bolmarcich
    May 27, 2005
Loading...

Share This Page