aspose file tools
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 Head First Android this week in the Android 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
Author

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
Sheriff

Joined: Oct 14, 2005
Posts: 19672
    
  10

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: fonts in xslt are not coming through in JSTL
 
It's not a secret anymore!