By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,199 Members | 1,440 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,199 IT Pros & Developers. It's quick & easy.

when am trying this in xsl page

P: 1
when am trying this in xsl page

<xsl:variable
name="myArray"><item>item1</item><item>item2</item></xsl:variable>
<xsl:value-of select="$myArray/item[2]"/>

i got the following error

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

org.apache.jasper.JasperException: Could not compile stylesheet

org.apache.jasper.servlet.JspServletWrapper.handle JspException(JspServletWrapper.java:
476)

org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:
371)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:
315)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)

root cause

javax.servlet.ServletException: Could not compile stylesheet

org.apache.jasper.runtime.PageContextImpl.doHandle PageException(PageContextImpl.java:
846)

org.apache.jasper.runtime.PageContextImpl.handlePa geException(PageContextImpl.java:
779)
org.apache.jsp.Welcome_jsp._jspService(Welcome_jsp .java:71)
org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)

org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:
328)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:
315)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)

root cause

javax.xml.transform.TransformerConfigurationExcept ion: Could not
compile stylesheet

com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerFactoryImpl.newTemplates(Unknown
Source)

com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerFactoryImpl.newTransformer(Unknown
Source)
com.scan.webui.TransformBookXslt.getHTML(Transform BookXslt.java:17)
org.apache.jsp.Welcome_jsp._jspService(Welcome_jsp .java:61)
org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)

org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:
328)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:
315)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.23 logs.
Apache Tomcat/5.5.23
May 31 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.