AnsweredAssumed Answered

Multiple Documents Uploading at a time

Question asked by reshma on Apr 2, 2009
Hi All,
I want to upload multiple documents at a time, I was created Add Content, but when I upload second document it is taking but in page it is not coming, I am getting only one document (first uploaded one) and here I am pasting my XSD and XSL files have a look and let me know what is that problem.

XSl File:
———



Thanks in advance.

XSL File:
———
<?xml version="1.0" encoding="UTF-8"?>
<!–

Produces an html rendition of a meeting
–>
<xsl:stylesheet version="1.0" xmlns:xhtml="http://www.w3.org/1999/xhtml"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ex="http://www.alfresco.org/alfresco/ex"
   xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
   exclude-result-prefixes="xhtml">
   <xsl:output method="html" encoding="UTF-8" indent="yes"
      doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
      doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
   <xsl:preserve-space elements="*" />
   <xsl:template match="/">
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
         <head>
            <title>LTA Intranet ::Others::</title>
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
            <LINK href="../home/style.css" type="text/css" rel="stylesheet" />
            <style> .noscroll { overflow-x:hidden; overflow-y:unhidden; }
            </style>
         </head>


<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="left" height="100%">
  <tr>
    <td valign="middle" align="center">
      <table width="525" border="0" cellspacing="2" cellpadding="1" align="center">



                  <tr bgcolor="#FF0197">
                    <td colspan="3">
                     <div align="center"><b class="ltab12"><font color="#FFFFFF">Schedule of Meetings<br></br>
                             ExCo &amp; Board Meeting</font></b></div>
                    </td>
                  </tr>



                  <tr bgcolor="#C7fa61" valign="top">
                          <td width="315" class="lta" bgcolor="#C7fa61" align="left" style="font-size:13px">Division:
                          <b><xsl:value-of select="/ex:exco/ex:division" />
                                                   </b></td>
                          <td width="315" class="lta" bgcolor="#C7fa61" style="font-size:13px" align="right">
                           Published Date: <b><xsl:value-of select="/ex:exco/ex:publish_date" /></b>
                          </td>
                  </tr>

            


            <tr bgcolor="#eeeeee" valign="top" align="center">
              <td colspan="3" align="left">
               <p> <span class="lta12" style="font-size:14px">Contents: <b>Schedule of Year 2008 and 2009 ExCo &amp; Board Meetings:</b></span> </p></td></tr>
            
            <xsl:for-each select="/ex:exco" >
            <tr><td>
               <a><xsl:attribute name="href"><xsl:value-of select="normalize-space(ex:document)" /></xsl:attribute><xsl:value-of select="normalize-space(ex:document)" /></a>
            </td></tr>
            </xsl:for-each>
            
            <tr>
              <td colspan="2" align="left">
                    <b>Please note that this schedule is subject to change as and when notified.</b><br />
              ExCo Meetings are held once a month (usually on Thursdays) and<br />
           Board Meetings are held on the last Thursday of each month.
              </td>
             </tr><tr>
            <td colspan="2" align="left">
                    <span class="lta12" style="font-size:14px">Contents: <b>Guidelines on Submission of ExCo and Board Papers</b></span>
                </td>
                </tr>
           <tr bgcolor="" valign="top" align="left">
                    <td colspan="3">
                       <table width="100%" border="0" cellspacing="0" cellpadding="8" >
                       <tr align="left" bgcolor="#eeeeee">
                     <td><xsl:value-of select="/ex:exco/ex:body" disable-output-escaping="yes" /></td>
                     </tr>
                  </table>
                  </td>
             </tr>



      </table>
       </td> 
      
      </tr>
      
     </table>

</body>
</html>
</xsl:template>
</xsl:stylesheet>

           

XSD File:
———-

<?xml version="1.0"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
      xmlns:pr="http://www.alfresco.org/alfresco/pr"
      xmlns:alf="http://www.alfresco.org"
           targetNamespace="http://www.alfresco.org/alfresco/ex"
           elementFormDefault="qualified">
          
  <!– defines the form for creating a exco –>


  <xs:element name="exco">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="division" type="xs:normalizedString"/>
        <xs:element name="publish_date" type="xs:date"/>
   <xs:element name="document" type="xs:anyURI" minOccurs="1" maxOccurs="unbounded"/>
        <xs:element name="body" type="xs:string" minOccurs="1" maxOccurs="1">   
      <xs:annotation>
         <xs:appinfo>
            <alf:appearance>custom</alf:appearance>
         </xs:appinfo>
           </xs:annotation>
   </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>


Thanks in advance.

Outcomes