Could you be more specific as to what is different in your output from Cocoon that with Xalan? The code you put in your e-mail does have a typo: "<xsl:processin-instruction" - processing is missing its 'g'. -Christopher Please respond to [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> cc: Subject: I can't make XSL to work for cocoon1.8.2 Hi, I have this XSL script which works with xalan (I use cooktop), but when Itry the same code with cocoon1.8.2 I receive really different output than my original output. I'd really appreciate if someone could explain to me why it does not work and what should I do to make it work. Thank you very much for your help. <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method = "html" encoding="Windows-1252" /> <xsl:template match="/"> <xsl:processin-instruction name=cocoon-format">type="text/html"</xsl:processing-instruction> <html> <body> <h3><xsl:text>Media Asset List for </xsl:text><xsl:value-of select="/Course/CourseInfo/title/para" /></h3> <xsl:for-each select="//Animation | //Graphic" > <table width="40%"> <tr> <td><b><xsl:text>Asset Name</xsl:text></b></td><td><xsl:value-of select="@FileRef"/></td> </tr> <tr> <td><b><xsl:text>Asset Type</xsl:text></b></td> <xsl:choose> <xsl:when test="name(.) = 'Animation'"> <td><xsl:text>Animation</xsl:text></td> </xsl:when> <xsl:when test="name(.) = 'Graphic' "> <td><xsl:text>Graphic</xsl:text></td> </xsl:when> </xsl:choose> </tr> <tr> <td><b><xsl:text>Asset Title </xsl:text></b></td><td><xsl:value-of select="@AssetTitle"/></td> </tr> <tr> <td><b><xsl:text>Description </xsl:text></b></td><td width="70%"><xsl:value-of select="@FileDesc"/></td> </tr> <tr> <td><b><xsl:text>File Source </xsl:text></b></td><td width="70%"><xsl:value-of select="@FileSource"/></td> <tr> <td><b><xsl:text>Copyright Status </xsl:text></b></td><td width="70%"><xsl:value-of select="@CopyrightInfo"/></td> </tr> <tr> <td><b><xsl:text>Pop-up Image </xsl:text></b></td><td width="70%"><xsl:value-of select="@HasClick"/></td> </tr> <tr> <td><b><xsl:text>Screen Number </xsl:text></b></td><td width="70%"><xsl:value-of select="@ScreenNum"/></td> </tr> </tr> </table> <hr/> </xsl:for-each> </body> </html> </xsl:template> </xsl:stylesheet> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
Re: I can't make XSL to work for cocoon1.8.2
Christopher Painter-Wakefield Tue, 14 Aug 2001 08:18:41 -0700
- I can't make XSL to work for cocoon1.8.2 Uslu, Cihan Y (MED)
- RE: I can't make XSL to work for cocoon... Christopher Painter-Wakefield
- RE: I can't make XSL to work for cocoon... Uslu, Cihan Y (MED)