I have been researching how to make use of XSLT on Jetspeed, and I have 
not found any simple examples on how to use the XSL abstract defined in 
portlets.xreg. Therefore, here is a very simple example for the email 
archives.

---- jetspeed/WEB-INF/conf/xmlxsl.xreg -------------
<?xml version="1.0" encoding="UTF-8"?>
<registry>
    <portlet-entry name="XMLXSL" hidden="false" type="ref" parent="XSL" 
application="false">
        <meta-info>
            <title>XML/XSL Demo</title>
            <description>Sample XML/XSL from 
xalan-j_2_3_1/samples/UseStylesheetPI: fooX.xml foo.xsl</description>
        </meta-info>
        <parameter name="stylesheet.text/html"
            value="/WEB-INF/xsl/foo.xsl" hidden="false"/>
        <media-type ref="html"/>
        <url>/WEB-INF/xml/fooX.xml</url>
    </portlet-entry>
</registry>

---- jetspeed/WEB-INF/xml/fooX.xml --------
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="foo.xsl"?>
<doc>Hello</doc>

---- jetspeed/WEB-INF/xsl/foo.xsl ------
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
        <xsl:template match="doc">
             <out><xsl:value-of select="."/></out>
</xsl:template> </xsl:stylesheet>

-- 
Glen Carl
Computer Sciences Corporation (CSC)
[EMAIL PROTECTED]




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

Reply via email to