• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 449
  • Last Modified:

How do I display an XML file in JSF portlet?

I have an XML file containing a reference to another XML file for styling:
<?xml-stylesheet type="text/xsl" href="Viewer.xml"?>
When I open my XML in a browser, the viewer file controls the appearance of my file.

I would like to display my XML in a JSF portlet, and have this viewer file control its appearance in the JSF as well. Is there a way to do this?
0
maor
Asked:
maor
1 Solution
 
maorAuthor Commented:
Ended up writing a parser to read the XML file and convert it into objects for the JSF to display.
This is not what I was hoping for, as it depends on the structure of the XML. Any change will result in my parser not working properly.

However, this solution is good enough for now, so I'm closing the question.
If anyone has a better solution, I'll be happy to hear it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now