You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by "Meyer, Carsten" <Ca...@fujitsu-siemens.com> on 2001/05/04 10:00:44 UTC

How to display XML/XSL within a Portlet?

Hi,

I have some sample data stored in a XML-file. I can display this data in two
ways : either with a XSL-file or using Javascript (only works in IE). 
Now I try to display this in a portlet. For this I use the existing
"HTML"-portlet:

>From the jetspeed-config:
        <portlet-entry type="ref" parent="HTML" name="HTML-Test">
            <url>/html-test/html-test.html</url>
            <meta-info>
                 <title>HTML</title>
            </meta-info>
        </portlet-entry>
    
        <portlet-entry type="ref" parent="HTML" name="XML-Test">
            <url>/xml-test/xml-test.xml</url>
            <meta-info>
                 <title>XML</title>
            </meta-info>
        </portlet-entry>
    
Now I have two problems:
The Javascript file (HTML) won't run (it says 'object needed'...) but this
one runs fine when started in a browser on its own.
The XML/XSL-connection doesn't work in so far as that the XML data is
displayed without applying the XSL-file. Again, this works fine in a browser
by itself.

Please, can anybody tell me how to do this correctly?

Thanks,
Carsten Meyer

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org