I decided to use xtags since it seems to be the latest and greatest XML/XSLT library...
<jsp:useBean id="courseSchedule" scope="session" class="CourseSchedule"/> <xtag:style document="<%=courseSchedule.getDoc()%>" xsl="./WEB-INF/xsl/merge.xsl" outputMethod="html" /> One tricky thing I had to deal with is related to xtags expecting an org.dom4j.document, so the bean function getDoc() above has to do a conversion from org.w3c to org.dom4j -bob --- Michael Lee <[EMAIL PROTECTED]> wrote: > Here's what we do and it's a VERY easy process. > http://jakarta.apache.org/taglibs/doc/xsl-doc/xsl-1.0/index.html#apply > > This is deprecated so I'm going to change it to > JSTL. Very similar. But its > part of J2EE spec so it's going to be around a > while. > http://www.manning.com/bayern/appendixA.pdf > > Another good option is the supported jakarta taglib > XTags. > http://jakarta.apache.org/taglibs/doc/xtags-doc/index.html#style > > We still haven't moved away from the deprecated tags > for the simple reason > that it works. Also, the JSTL is horrifically > documented. > > I saw someone earlier mention letting the browser > perform the translation > for you. I don't know if I recommend this because > you never know what your > getting. You can get inconsistent results per > browser. You do it on your > side and you get the same results. How the browser > now displays that html is > a different discussion! Another reason to let the > server do it is you may > want to just change the xsl and allow a different > format (pdf, csv, > whatever). > Michael Lee > > > > > > > > >From: Tom Ziemer <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> > >To: Struts Users Mailing List > <[EMAIL PROTECTED]> > >Subject: Re: xslt in jsp > >Date: Sun, 09 Mar 2003 13:09:25 +0100 > > > >Hi, > > > >what I'm doing is this: I've got a custom tag in my > JSP page, that uses a > >transformer to process the xml input. So my page > looks like this: > >... > ><test:myDesign design="uni" > > title="index.title" > > heading="index.heading"> > > > > <test:xmlConvert> > > <!-- YOUR XML CONTENT HERE --> > > </test:xmlConvert> > ></test:myDesign> > > > >Hope this helps, > > > >Tom > > > >>On Sat, 8 Mar 2003, J�rg Maurer wrote: > >> > >>} definitly give JSTL a try! Myself not applied > it, but read book by Bayer > >>} Shawn - devoted taglibs to xml and xml > transformation for usage in jsp. > >>} > >>} -----Original Message----- > >>} From: bobd [mailto:[EMAIL PROTECTED] > >>} Sent: Samstag, 08. M�rz 2003 20:02 > >>} To: [EMAIL PROTECTED] > >>} Subject: xslt in jsp > >>} > >>} > >>} I have a jsp that needs to retrieve XML from a > bean > >>} (stored in the session) and then execute a > >>} transformation. > >>} > >>} what is the easiest way to do this? Having > difficulty > >>} using <xsltlib:...>, as well as locating > documentation > >>} on this. > >>} > >>} thanks, > >>} -b > >>} > >>} > __________________________________________________ > >>} Do you Yahoo!? > >>} Yahoo! Tax Center - forms, calculators, tips, > more > >>} http://taxes.yahoo.com/ > >>} > >>} > --------------------------------------------------------------------- > >>} To unsubscribe, e-mail: > [EMAIL PROTECTED] > >>} For additional commands, e-mail: > [EMAIL PROTECTED] > >>} > >>} > >>} > --------------------------------------------------------------------- > >>} To unsubscribe, e-mail: > [EMAIL PROTECTED] > >>} For additional commands, e-mail: > [EMAIL PROTECTED] > >>} > >>} > >> > >> > >>------------------------------------------------------------------------ > >>Guido Garcia Bernardo > >>[EMAIL PROTECTED] > >>[EMAIL PROTECTED] > >> "stat > rosa pristina > >> nomine, nomina > nuda tenemus." > >>------------------------------------------------------------------------ > >>http://members.ud.com/services/teams/team.htm?id=D8624419-BFB6-4772-A01A-0045631F979F > >> > >>--------------------------------------------------------------------- > >>To unsubscribe, e-mail: > [EMAIL PROTECTED] > >>For additional commands, e-mail: > [EMAIL PROTECTED] > >> > > > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: > [EMAIL PROTECTED] > >For additional commands, e-mail: > [EMAIL PROTECTED] > > > _________________________________________________________________ > Help STOP SPAM with the new MSN 8 and get 2 months > FREE* > http://join.msn.com/?page=features/junkmail > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

