RE: xsl taglib
Thanks everybody for UR replies. It cleared my mind. cheers -Madhavi At 14:28 24/10/2002 -0400, you wrote: Incase you are wondering, the tag libraries referred to in this user list implement server-side code for Java Server Pages [JSPs]. Both the XSL taglib [used for JSP 1.1] and the JSTL taglibs [used for JSP 1.2] are used on a Java server to generate HTML, or some other markup that a web browser understands. That HTML is then sent to a browser to be used on the client-side. Neither of these tag libraries can be utilizes to do client-side transformations or used in xslt itself. On Thu, 24 Oct 2002, Madhavi Thottempudi wrote: Hi there! Is anybody out there working with XSL taglib for transformations?? please can U tell me if they are used for client-side transformations or if they are like taglibs that can be used in xslt for some extra logic. I am new to these technologies...so please excuse my dumb question cheers -Madhavi -- To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:taglibs-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:taglibs-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:taglibs-user-help;jakarta.apache.org
Re: xsl taglib
You have to use JSTL taglib instead. XSL taglib is deprecated. JSTL taglib requires jsdk 1.4 at least. You have to put the .jar files of jstl (download from apache) in: your-app-context-path/WEB-INF/lib/. Then put the .tld files in: your-app-context-path/WEB-INF/. Then mention the the .tld files in the web.xml file of your application: web-app taglib taglib-urihttp://java.sun.com/jstl/xml/taglib-uri taglib-location/WEB-INF/x.tld/taglib-location /taglib taglib taglib-urihttp://java.sun.com/jstl/core/taglib-uri taglib-location/WEB-INF/c.tld/taglib-location /taglib /web-app Then this in the header of your jsp file: %@ taglib prefix=x uri=http://java.sun.com/jstl/xml; % %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % and later in the jsp, an example of transformation: c:import url=/data/something.xml var=xml/ c:import url=/data/something.xsl var=xslt/ x:transform xml=${xml} xslt=${xslt} / Sometimes there's a strange error, something like mayor minor 48. If you have this error message may be because you have to replace your tools.jar of tomcat_home/common/lib. You have to put a new tools.jar from the jsdk 1.4 bye! Mauro On Thu, 24 Oct 2002, Madhavi Thottempudi wrote: Hi there! Is anybody out there working with XSL taglib for transformations?? please can U tell me if they are used for client-side transformations or if they are like taglibs that can be used in xslt for some extra logic. I am new to these technologies...so please excuse my dumb question cheers -Madhavi -- To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:taglibs-user-help;jakarta.apache.org -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar -- To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:taglibs-user-help;jakarta.apache.org
RE: xsl taglib
Incase you are wondering, the tag libraries referred to in this user list implement server-side code for Java Server Pages [JSPs]. Both the XSL taglib [used for JSP 1.1] and the JSTL taglibs [used for JSP 1.2] are used on a Java server to generate HTML, or some other markup that a web browser understands. That HTML is then sent to a browser to be used on the client-side. Neither of these tag libraries can be utilizes to do client-side transformations or used in xslt itself. On Thu, 24 Oct 2002, Madhavi Thottempudi wrote: Hi there! Is anybody out there working with XSL taglib for transformations?? please can U tell me if they are used for client-side transformations or if they are like taglibs that can be used in xslt for some extra logic. I am new to these technologies...so please excuse my dumb question cheers -Madhavi -- To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:taglibs-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:taglibs-user-help;jakarta.apache.org
RE: xsl taglib
Oh! Sorry! I haven't noticed that. So, correcting myself: where it says: JSTL taglib requires jsdk 1.4 at least it have to say: JSTL worked for me with jsdk 1.4. -- Mauro On Thu, 24 Oct 2002, Gideon, Thomas wrote: JSTL doesn't require JDK 1.4. There should be two binary distributions in the download area, one that assumes 1.4 (and doesn't include the overlapping XML libraries) and one that works with earlier JDKs (i.e. supplies external XML libraries). -Original Message- From: Mauro Daniel Ardolino [mailto:mauro;altersoft.com.ar] Sent: Thursday, October 24, 2002 2:11 PM To: Tag Libraries Users List Subject: Re: xsl taglib You have to use JSTL taglib instead. XSL taglib is deprecated. JSTL taglib requires jsdk 1.4 at least. You have to put the .jar files of jstl (download from apache) in: your-app-context-path/WEB-INF/lib/. Then put the .tld files in: your-app-context-path/WEB-INF/. Then mention the the .tld files in the web.xml file of your application: web-app taglib taglib-urihttp://java.sun.com/jstl/xml/taglib-uri taglib-location/WEB-INF/x.tld/taglib-location /taglib taglib taglib-urihttp://java.sun.com/jstl/core/taglib-uri taglib-location/WEB-INF/c.tld/taglib-location /taglib /web-app Then this in the header of your jsp file: %@ taglib prefix=x uri=http://java.sun.com/jstl/xml; % %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % and later in the jsp, an example of transformation: c:import url=/data/something.xml var=xml/ c:import url=/data/something.xsl var=xslt/ x:transform xml=${xml} xslt=${xslt} / Sometimes there's a strange error, something like mayor minor 48. If you have this error message may be because you have to replace your tools.jar of tomcat_home/common/lib. You have to put a new tools.jar from the jsdk 1.4 bye! Mauro On Thu, 24 Oct 2002, Madhavi Thottempudi wrote: Hi there! Is anybody out there working with XSL taglib for transformations?? please can U tell me if they are used for client-side transformations or if they are like taglibs that can be used in xslt for some extra logic. I am new to these technologies...so please excuse my dumb question cheers -Madhavi -- To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:taglibs-user-help;jakarta.apache.org -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar -- To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:taglibs-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:taglibs-user-help;jakarta.apache.org -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar -- To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:taglibs-user-help;jakarta.apache.org
RE: xsl taglib
JSTL doesn't require JDK 1.4. There should be two binary distributions in the download area, one that assumes 1.4 (and doesn't include the overlapping XML libraries) and one that works with earlier JDKs (i.e. supplies external XML libraries). -Original Message- From: Mauro Daniel Ardolino [mailto:mauro;altersoft.com.ar] Sent: Thursday, October 24, 2002 2:11 PM To: Tag Libraries Users List Subject: Re: xsl taglib You have to use JSTL taglib instead. XSL taglib is deprecated. JSTL taglib requires jsdk 1.4 at least. You have to put the .jar files of jstl (download from apache) in: your-app-context-path/WEB-INF/lib/. Then put the .tld files in: your-app-context-path/WEB-INF/. Then mention the the .tld files in the web.xml file of your application: web-app taglib taglib-urihttp://java.sun.com/jstl/xml/taglib-uri taglib-location/WEB-INF/x.tld/taglib-location /taglib taglib taglib-urihttp://java.sun.com/jstl/core/taglib-uri taglib-location/WEB-INF/c.tld/taglib-location /taglib /web-app Then this in the header of your jsp file: %@ taglib prefix=x uri=http://java.sun.com/jstl/xml; % %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % and later in the jsp, an example of transformation: c:import url=/data/something.xml var=xml/ c:import url=/data/something.xsl var=xslt/ x:transform xml=${xml} xslt=${xslt} / Sometimes there's a strange error, something like mayor minor 48. If you have this error message may be because you have to replace your tools.jar of tomcat_home/common/lib. You have to put a new tools.jar from the jsdk 1.4 bye! Mauro On Thu, 24 Oct 2002, Madhavi Thottempudi wrote: Hi there! Is anybody out there working with XSL taglib for transformations?? please can U tell me if they are used for client-side transformations or if they are like taglibs that can be used in xslt for some extra logic. I am new to these technologies...so please excuse my dumb question cheers -Madhavi -- To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:taglibs-user-help;jakarta.apache.org -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar -- To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:taglibs-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:taglibs-user-help;jakarta.apache.org
Re: xsl taglib...
The XSL taglib is a bit undescriptive. Make sure that you're correctly specifying the path of the XML and XSLT files, and make sure they parse from the command-line. Posting a snippet of JSP would be useful. Also, are you sure the taglib is meant to with with Xalan2? I've always used it with Xalan1.2.x. It really needs a rewrite using TraX.. --Jeff On Mon, Feb 26, 2001 at 01:11:04PM -0800, inder sabharwal wrote: HI: I am trying to test out Apply.jsp after installing the xsl taglib. But when I hit the page it comes back with a SAXException. I am including the stack trace from the stderr here. I thought it was a classpath issue, but have checked it many times and there just doesnot seem to be a problem there. Here's my classpath: Now Setting CLASSPATH: D:\jakarta\xalan-j_2_0_0\bin\xalan.jar;D:\jakarta\xalan-j _2_0_0\bin\xerces.jar;D:\jakarta\xalan-j_2_0_0\bin\bsf.jar;D:\jakarta\xalan- j_2_ 0_0\bin\xalanj1compat.jar;D:\jakarta\jakarta-tomcat-3.2.1\classes;;D:\jakart a\ja karta-tomcat-3.2.1\lib\ant.jar;D:\jakarta\jakarta-tomcat-3.2.1\lib\servlet.j ar;D :\jakarta\jakarta-tomcat-3.2.1\lib\webserver.jar;D:\jakarta\jakarta-tomcat-3 .2.1 \lib\jasper.jar;D:\jdk1.3\lib\tools.jar - Here's the stack trace. Location: /xsl-examples/jsp/Apply.jsp SAX Exception javax.xml.transform.TransformerException: SAX Exception at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1503) at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1468) at org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:505) at org.apache.taglibs.xsl.ApplyTag.doEndTag(ApplyTag.java:273) at jsp._0002fjsp_0002fApply_00032_0002ejspApply2_jsp_0._jspService(_0002 fjsp_0002fApply_00032_0002ejspApply2_jsp_0.java:89) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer vlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3 18) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4 04) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372 ) at org.apache.tomcat.core.ContextManager.internalService(ContextManager. java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743 ) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio n(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java :498) at java.lang.Thread.run(Thread.java:484) 2001-02-26 12:59:54 - Ctx( /xsl-examples ): Exception in: R( /xsl-examples + /js p/Apply2.jsp + null) - javax.servlet.ServletException: SAX Exception at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCon textImpl.java:459) at jsp._0002fjsp_0002fApply_00032_0002ejspApply2_jsp_0._jspService(_0002 fjsp_0002fApply_00032_0002ejspApply2_jsp_0.java:102) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer vlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3 18) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4 04) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372 ) at org.apache.tomcat.core.ContextManager.internalService(ContextManager. java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743 ) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio n(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java :498) at java.lang.Thread.run(Thread.java:484) Root cause: javax.servlet.jsp.JspException: SAX Exception at org.apache.taglibs.xsl.ApplyTag.doEndTag(ApplyTag.java:290) at
RE: xsl taglib...
Title: RE: xsl taglib... Sorry, but I do not follow, ok so it is based on 1.x xalan, but what have you re-written? Thanks a lot Damjan -Original Message- From: Matola,Tod [mailto:[EMAIL PROTECTED]] Sent: Monday, February 26, 2001 11:51 PM To: '[EMAIL PROTECTED]' Subject: RE: xsl taglib... Hello, As far as I could tell this taglib is based on the 1.x xalan and 2.x xalan was not possible. I rewrote the example 2.x servlet as a bean because the classpath issues of tomcat vs. speed issues made the 1.x version less than desirable. Cheers Tod... -Original Message- From: inder sabharwal [mailto:[EMAIL PROTECTED]] Sent: Monday, February 26, 2001 4:11 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: xsl taglib... Hello, As far as I could tell this taglib is based on the 1.x xalan and 2.x xalan was not possible. I rewrote the example 2.x servlet as a bean because the classpath issues of tomcat vs. speed issues made the 1.x version less than desirable. Cheers Tod... HI: I am trying to test out Apply.jsp after installing the xsl taglib. But when I hit the page it comes back with a SAXException. I am including the stack trace from the stderr here. I thought it was a classpath issue, but have checked it many times and there just doesnot seem to be a problem there. Here's my classpath: Now Setting CLASSPATH: D:\jakarta\xalan-j_2_0_0\bin\xalan.jar;D:\jakarta\xalan-j _2_0_0\bin\xerces.jar;D:\jakarta\xalan-j_2_0_0\bin\bsf.jar;D:\jakarta\xalan- j_2_ 0_0\bin\xalanj1compat.jar;D:\jakarta\jakarta-tomcat-3.2.1\classes;;D:\jakart a\ja karta-tomcat-3.2.1\lib\ant.jar;D:\jakarta\jakarta-tomcat-3.2.1\lib\servlet.j ar;D :\jakarta\jakarta-tomcat-3.2.1\lib\webserver.jar;D:\jakarta\jakarta-tomcat-3 .2.1 \lib\jasper.jar;D:\jdk1.3\lib\tools.jar - Here's the stack trace. Location: /xsl-examples/jsp/Apply.jsp SAX Exception javax.xml.transform.TransformerException: SAX Exception at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1503) at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1468) at org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:505) at org.apache.taglibs.xsl.ApplyTag.doEndTag(ApplyTag.java:273) at jsp._0002fjsp_0002fApply_00032_0002ejspApply2_jsp_0._jspService(_0002 fjsp_0002fApply_00032_0002ejspApply2_jsp_0.java:89) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer vlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3 18) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4 04) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372 ) at org.apache.tomcat.core.ContextManager.internalService(ContextManager. java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743 ) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio n(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java :498) at java.lang.Thread.run(Thread.java:484) 2001-02-26 12:59:54 - Ctx( /xsl-examples ): Exception in: R( /xsl-examples + /js p/Apply2.jsp + null) - javax.servlet.ServletException: SAX Exception at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCon textImpl.java:459) at jsp._0002fjsp_0002fApply_00032_0002ejspApply2_jsp_0._jspService(_0002 fjsp_0002fApply_00032_0002ejspApply2_jsp_0.java:102) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer vlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3 18) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4 04) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372 ) at org.apache.tomcat.core.ContextManager.internalService(ContextManager. java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743 ) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio n