Meyer, Carsten wrote:

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

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

I think this is how it should be. There is a version attribute and the 
namespace declaration is different.



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

Reply via email to