facebook

jsp compiler error using struts-el with xsl transformation

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #200468 Reply

    Liung Ling
    Member

    Hi,

    I’m using eclipse M.04 and MyEclipse 3.6.4. (I had similar problem with 3.6.3 earlier)

    I get error: unknown user tag <xsl:… add <%@ taglib prefix=”xsl” …>
    for the following jsp page:

    <%@ taglib uri=”/WEB-INF/struts-html-el.tld” prefix=”html” %>
    <%@ taglib uri=”http://java.sun.com/jstl/core&#8221; prefix=”c” %>
    <%@ taglib uri=”/WEB-INF/x.tld” prefix=”x” %>

    <html:errors />

    <c:set var=”xml”>
    <paragraph>
    This is using <bold>unusual</bold> markup.
    </paragraph>
    </c:set>

    <c:set var=”xsl”>
    <?xml version=”1.0″?>
    <xsl:stylesheet xmlns:xsl=”http://www.w3.org/1999/XSL/Transform&#8221; version=”1.0″>
    <xsl:template match=”bold”>
    <b><xsl:value-of select=”.”/></b>
    </xsl:template>
    </xsl:stylesheet>
    </c:set>

    <x:transform xml=”${xml}” xslt=”${xsl}”/>

    I’d tried both ways (http vs WEB-INF) of coding the uri above, but with the same results. However, the page works when running under Tomcat 5.0.

    Any idea? Thanks.

    #200509 Reply

    No Operation
    Member

    <xsl:stylesheet xmlns:xsl=”http://www.w3.org/1999/XSL/Transform&#8221; version=”1.0″>

    this is JSP2.0 syntax and prolly the cause.

    try to change this into

    
    <%@ taglib uri="http://www.w3.org/1999/XSL/Transform" prefix="xsl" %> 
     <xsl:stylesheet version="1.0">
    

    does it work then?

    NOP

    #200521 Reply

    Liung Ling
    Member

    No, it doesn’t. I’m wondering whether I’m missing a TLD.

    #200533 Reply

    No Operation
    Member

    Your

    <xsl:...>

    tags are regarded as JSP taglib tags. Since the editor does not recognize xml tags.

    There is no taglib.
    And there is also no DTD for xsl.

    Possible enhancement: Unknown xml tags should not regarded as error, if there is no DTD.

    NOP

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: jsp compiler error using struts-el with xsl transformation

You must be logged in to post in the forum log in