Carsten

The content is delivered to the browser as one large HTML file.  IE 5 has
some xml/xsl capability, but I would imagine it will not work if the XML is
embedded in a HTML file.  As you point out, this will also only work in new
versions of IE.

An alternative is do do the XSL conversion on the server.  Try using the XSL
Portlet:

        <portlet-entry type="ref" parent="XSL" name="XSL-Test">
            <url>/xml-test/xml-test.xml</url>
            <stylesheet>path to stylesheet</stylesheet>
            <meta-info>
                 <title>XSLT Test</title>
            </meta-info>
        </portlet-entry>

I haven't tried this - but I have been doing something similar with a
tailored portlet.

Joe.

-----Original Message-----
From: Meyer, Carsten [mailto:[EMAIL PROTECTED]]
Sent: Friday, 04 May 2001 9:01 AM
To: [EMAIL PROTECTED]
Subject: 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to