Hi, try this
<%@ page language="java" %> <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %> <c:import url="${param.xsltFile}" var="xslt"/> <x:transform xslt="${xslt}" xml="${beanname.xml}"/> I dont know what u wanna do with the filename and the extension -------------------------------------------------------------------- Jordi Valldaura i Riqu� CSI - Centre de Serveis Inform�tics Enginyeria i Arquitectura La Salle Universitat Ram�n Llull -------------------------------------------------------------------- ----- Original Message ----- From: "Michael C. Lee Jr." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 04, 2003 8:53 PM Subject: trying to create generic transformer jsp Hey all. I've read through the JSTL documentation and this groups email archives and haven't seen any good examples that help me with what I'm tyring to do. I want to use the x:transform. I get the xsl url from the parameter list. I get the filename and extension from the parameter list. I get the name of a bean that contains a method called getXml() that returns a String that is the XML I wish to transform. I can't figure out how to do this. :( The url is like this; transform.jsp?bean=someBean&xslFile=someFileURL&filename=responseFilename&ty pe=extension I would like to do String xml = someBean.getXml(); <c:import ? ?? var="xml"/> <c:import url="someFileURLl" var="xslt"/> <c:import ??? var="filename"/> <- Built from responseFilename+extension <x:transform xml='${xml}' xslt='${xslt}" result="filename"/> thanks, Mike --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
