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]>

Reply via email to