1.x worked this way, 2 doesn't.  Please - try the demo and read the
documentation.

J.

> -----Original Message-----
> From: Dong Wenyu [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 31 January 2002 4:22 pm
> To: [EMAIL PROTECTED]
> Subject: XSL doesn't work under Cocoon 2 .0 + Tomcat 4.01 ??
> 
> 
>  
> 
> I installed Tomcat 4.01 and Cocoon 2.0 sucessfully.
> But I can't make XSL work correctly. Is there anything
> wrong?
> 
> The simple 'CCC.xml' and its XSL file 'CCC.html.xsl'
> are as follows:
> 
> 
> <!-- ccc.xml -->
> <?xml version="1.0"?>
> 
> <?xml-stylesheet href="XSL\ccc.html.xsl"
> type="text/xsl"?>
> <?cocoon-process type="xslt"?>
> 
> <MyNamespace:Book
> xmlns:MyNamespace="http://localhost:9000/";>
>    <MyNamespace:Title>   Title line in XML.  
> </MyNamespace:Title>
>     <MyNamespace:PhraseOrWord>    AAAAAAAAAAA   
> </MyNamespace:PhraseOrWord>
>     <MyNamespace:PhraseOrWord>    BBBBBBBBBBB   
> </MyNamespace:PhraseOrWord>
>     <MyNamespace:PhraseOrWord>    CCCCCCCCCCC   
> </MyNamespace:PhraseOrWord>
>     <MyNamespace:PhraseOrWord>    DDDDDDDDDDD   
> </MyNamespace:PhraseOrWord>
> </MyNamespace:Book>
> 
> 
> 
> <!-- ccc.html.xsl -->
> <?xml version="1.0"?>
> 
> <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>                
> xmlns:MyNamespace="http://localhost:9000/";
>                 version="1.0"
> >
> <xsl:template match="MyNamespace:Book">
>   <html>
>     <head>
>       <title>Title line in XSL</title>
>     </head>
>     <body>
>       <xsl:apply-templates />
>     </body>
>   </html>
> </xsl:template>
>   
> <xsl:template>
> </xsl:template>
> 
> </xsl:stylesheet>
> 
> 
> I copied CCC.xml to 
> 'E:\TOMCAT\webapps\ROOT\ccc.xml' 
> 
> and CCC.html.xsl to 
> 'E:\TOMCAT\webapps\ROOT\XSL\ccc.html.xsl' 
> 
> respectively. Then I treied 
> 'http://localhost:9000/ccc.xml'
> 
> Nothing is shown except 'Title line in XSL' in the
> IE-window title bar. 
> 
> 
> But executing the command line 
> E:\Tomcat\webapps\ROOT>'java
> org.apache.xalan.xslt.Process -IN ccc.xml -XSL
> XSL/ccc.html.xsl -OUT ccc.html',
> 
> will result in a successful 
> 'E:\Tomcat\webapps\ROOT\ccc.html' as expected:
> 
> <html xmlns:MyNamespace="http://localhost:9000/";>
> <head>
>   <META http-equiv="Content-Type" content="text/html;
> charset=UTF-8">
>   <title>Title line in XSL</title>
> </head>
> <body>
>    Title line in XML.
>     
>     AAAAAAAAAAA
>     
>     BBBBBBBBBBB
>     
>     CCCCCCCCCCC
>     
>     DDDDDDDDDDD
> </body>
> </html>
> 
> 
> 
> 
> It seems that Cocoon 2 + Tomcat 4.01 does not support
> XSL, or something is wrong with configuration.
> 
> Any body help me?
> 
> 
> 
> 
> 
> Thank you inadvance.
> 
> Dong Wenyu
> [EMAIL PROTECTED]
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Great stuff seeking new owners in Yahoo! Auctions! 
> http://auctions.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 


=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

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

Reply via email to