Hate to post this just when you've got it working ;-), but it sounds like you really should be using JSTL 1.1. It's specifically targeted at JSP 2.0 (e.g. Tomcat 5) and only comes in a single taglib flavor.
JSTL 1.1: http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html Install the following in WEB-INF/lib: jstl.jar standard.jar Then use the following taglib directives (notice they have a different root from the URI you're currently using): <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %> <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %> If you're not already doing so, you should also use a Servlet 2.4 web.xml: <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> ... </web-app> Quoting Thomas McDonald <[EMAIL PROTECTED]>: > It works now. I changed the page directive to : > > <%@ taglib prefix="x" > uri="http://java.sun.com/jstl/xml_rt" %> > > notice the '_rt' at the end > > I am not sure why it works, i.e., based upon what Kris > just said I shouldn't be able to run <%= %> and ="${ > }" in the same tag, but I did. > > Maybe is works because (I think) I am running a JSP > 2.0 container--I just installed Tomcat 5.0.19 and I > believe that has a JSP 2.0/Servlet 2.4 container. > > Anyway, life is good :-) > > This is a great mailing list. Very responsive. > Thanks all. > > --- Kris Schneider <[EMAIL PROTECTED]> wrote: > > Until you get to JSP 2.0, you can't use scriptlet > > expressions and EL expressions > > as attribute values for the same tag. In other > > words, you can't use "${...}" > > and "<%=...%>" for attribute values in the same tag. > > That's why JSTL 1.0 comes > > with two flavors of each of its taglibs: EL-based > > and RT-based. > > > > Quoting "MARU, SOHIL (SBCSI)" <[EMAIL PROTECTED]>: > > > > > Try changing the name of > > url="/includes/xslt/sortablegrid.xslt" to > > > url="/includes/xslt/sortablegrid.xsl" > > > The name of the file should not include .xslt but > > should be .xsl > > > > > > -----Original Message----- > > > From: Thomas McDonald [mailto:[EMAIL PROTECTED] > > > > > Sent: Wednesday, March 03, 2004 3:09 PM > > > To: [EMAIL PROTECTED] > > > Subject: xslt expression > > > > > > > > > I keep getting the error "According to TLD or > > > attribute directive in tag file, attribute xslt > > does > > > not accept any expressions" > > > > > > "doesn't accept expressions??!!" That seems > > > absolutely crazy to me. Does it really want me to > > > type in a whole xsl document? I have to deliver > > the > > > xsl document via an expression. I must be doing > > > something wrong. Any ideas? > > > > > > Here is my code code: > > > > > > <%@ taglib prefix="c" > > > uri="http://java.sun.com/jstl/core" %> > > > <%@ taglib prefix="x" > > > uri="http://java.sun.com/jstl/xml" %> > > > <c:import url="/includes/xslt/sortablegrid.xslt" > > > var='xslt'/> > > > <x:transform xslt="${xslt}"> > > > <%=objXML.getXml().toString().trim()%> > > > </x:transform> > > > > -- > > Kris Schneider <mailto:[EMAIL PROTECTED]> > > D.O.Tech <http://www.dotech.com/> -- Kris Schneider <mailto:[EMAIL PROTECTED]> D.O.Tech <http://www.dotech.com/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]