Hi,

I found this is a digest from a couple of days ago (wasn't at work and
didn't check them yet, sorry!).

>I have not tried this with the current Jetspeed build, but the following
>configuration works in Jetspeed 1.2b2.
>
>This entry was already included in the portlet registry:
>
>        <entry type="abstract" name="XSL">
>
><classname>org.apache.jetspeed.portal.portlets.XSLPortlet</classname>
>        </entry>
>
>I added this entry in the registry, where the <url> points to a well-formed
>XML doc, and the stylesheet transforms the doc to HTML for display:
>
>        <entry type="ref" parent="XSL" name="ProductDetail">
>            <url>/examples/Products.xml</url>
>            <parameter name="stylesheet"
value="/examples/ProductDetail.xsl"/>
>            <metainfo>
>                <title>Product Detail</title>
>                <description>Product catalog detail.</description>
>            </metainfo>
>        </entry>
>

Now this seems like a good idea, but I get an error saying the following :

"XSL warning: xsl stylesheet requires a 'version' attribute! Location
file....."

How do I solve this?
My XSL-stylesheet starts the following way:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl";>

I've tried putting a version attribute in there, but that doesn't work. :-(

Please help!!

Thanks,
Carsten



Btw,

> 
> 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>
> 

This didn't work.

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

Reply via email to