Including CSS in XML with JSP

I

icogs

I have just started using JSP to generate XML documents (XUL in fact)
and I am not sure how to get JSP to put <?xml-stylesheet href=blah-de-
blah... ?> at the top of the generated document.
 
T

Troy Bourdon

I have just started using JSP to generate XML documents (XUL in fact)
and I am not sure how to get JSP to put <?xml-stylesheet href=blah-de-
blah... ?> at the top of the generated document.

Why are you trying to generate an XML response with JSP? Give some context
please.
 
I

icogs

Why are you trying to generate an XML response with JSP? Give some context  
please.

I am creating pages in XUL for Firefox rather than HTML as it has a
richer set of widgets and because I want window-oriented layout rather
than page-oriented. I am using JSF with xulfaces which adds Ajax to
XUL components so it works pretty much like JSF with HTML.
 
I

icogs

I have just started using JSP to generate XML documents (XUL in fact)
and I am not sure how to get JSP to put <?xml-stylesheet href=blah-de-
blah... ?> at the top of the generated document.

OK, I got around this by creating a tag file with the following:

<%@ tag body-content="empty" %>
<%@ attribute name="href" required="true" %>
<?xml-stylesheet href="${href}" type="text/css"?>

Works like a charm :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top