Hi,
When I use cocoon I am getting too many tables filled with spaces, and
attributes in the wrong cells and repeating many times.
With xalan I get 7 tables filled with attribute values in the cells of
the tables. There are 7 LiteralExample tags withing the XML file.
I'm attaching a snippet from xml document hoping that it'd help to
explain my problem.


<?xml version="1.0"?>
<Course>
  <Module ModuleNum="01" >
  ....
  </Module>  
  <Module ModuleNum="02">
   <Concept>
     <ConceptDetail>
      <LiteralExample>
       <Graphic FileRef="ct525_02_030_010a"
                         FileSource="Audiographics powerpoint
presentation slide 6"
                         ClickRef="ct525_02_030_010ap"
ScreenNum="02_030_010"/>
         </LiteralExample>
     </ConceptDetail>
   <Concept>
  </Module>
.....

</Course>
     

-----Original Message-----
From: Christopher Painter-Wakefield [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 10:45 AM
To: [EMAIL PROTECTED]
Subject: Re: I can't make XSL to work for cocoon1.8.2



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

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