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 Peter Rajesh <ra...@siptech.co.in> on 2001/09/18 14:20:43 UTC

Missing or incorrect XSLT Namespace - in Jetspeed

HI,

I hosted the XML and XSL file in the Jetspeed, and while customizing when i
select the XSL portlet for display following Exception is thrown.

problem in SAX transform: org.xml.sax.SAXException: stylesheet requires
attribute: version; Missing or incorrect XSLT Namespace.

Following are the lines i used in the XSL file.
______________________________________________________
<?xml version="1.0" ?>

<HTML xmlns:xsl="http://www.w3.org/TR/WD-xsl" version="1.0">
<BODY>
   <xsl: .....
    ...........
    ..........
   </xsl
</BODY>
<HTML>
____________________________________________________

I tried with following namespace also,
"http://www.w3.org/1999/XSL/Transform".
If i change the namespace, it is throwing an error "Incorrect Namespace".
Please let me know how to rectify this.

Regards

Peter Rajesh

Karsten.Gampe@plenum.de wrote:

> Hello Peter,
>
> put the follow entry in your portlets.xreg (or local-portlets.xreg?):
>
>     <portlet-entry name="XSLTry" hidden="false" type="ref" parent="XSL"
> application="false">
>         <url>/WEB-INF/xml/myxml.xml</url>
>         <meta-info>
>             <title>XSL-Try</title>
>             <description>Output the xml file rendered by a xsl to a html
> file</description>
>         </meta-info>
>         <parameter name="stylesheet.text/html" value
> ="/WEB-INF/xsl/myxsl.xsl" hidden="false" />
>         <media-type ref="html"/>
>     </portlet-entry>
>
> - put myxml.xml in the directory "../WEB-INF/xml"
> - put myxsl.xsl in the directory ".../WEB-INF/xsl"
> - restart tomcat
> - add portlet in costomize section
>