File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes fonts in xslt are not coming through in JSTL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "fonts in xslt are not coming through in JSTL" Watch "fonts in xslt are not coming through in JSTL" New topic

fonts in xslt are not coming through in JSTL

Benjamin Weaver
Ranch Hand

Joined: Apr 08, 2003
Posts: 161
I have included some colored fonts in my XSLT templates. So I can make capital letters a different color, and so on. These fonts come over fine when I do the transformation using a desktop xml tool (Cooktop), and they come over fine in an org.w3c.dom transformation. But when I move the transformed XML file into JSTL and read the tags there, the fonts don't come through. Any ideas why?

By "fonts" I mean something like

Paul Clapham

Joined: Oct 14, 2005
Posts: 18541

So first you transform something using XSLT, and it generates XML containing "font" elements correctly. You have tried that three ways and it always generates the XML that you want.

But when you move the XML into JSTL (I don't know exactly what that means) then the font elements don't appear in the resulting HTML?

So it sounds like your XSLT is working just fine. You appear to have a question about JSTL. So let me move this over to the JSP forum, where questions about JSTL are on-topic. But I must say that more detail about the JSTL would be helpful.
I agree. Here's the link:
subject: fonts in xslt are not coming through in JSTL
Similar Threads
How to handle nested html tags in XSL?
XSLT/XPath predicates: not(), =, !=
Namespaces are winding me up!
Why aren't DENSITY & DISTANCE text displayed?
XSL transformation