logo       

Repeat displaying last element empty: msg#00029

Subject: Repeat displaying last element empty
Hello all,

The following repeat structure outputs all the nodes except the last one correctly. The last one is always output as an empty string. Can you explain that?

Context: Running Chiba from CVS dated 2005-02-15. The Tomcat debug output doesn't show any errors or relevant warnings.

<xforms:repeat id="file-repeat" nodeset="instance('jobsFile')//moi:Job[moi:Description=instance('context')/jobDescription and moi:ParentSlot/@id=instance('context')/slotId]/moi:Files/moi:File" appearance="compact">
       <xforms:output ref=".">
         <xforms:label>Filename</xforms:label>
       </xforms:output>
     </xforms:repeat>


--
Victor Engmark
"Quid quid latine dictum sit, altum viditar" - "What is said in latin, sounds profound"

Attachment: slots.xhtml
Description: application/xhtml

<?xml version="1.0" encoding="UTF-8"?>
<moi:ImportData xmlns:moi="http://edms.cern.ch"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://edms.cern.ch C:\MTF\extras\jobs.xsd">
  <moi:Jobs>
    <moi:Job>
      <moi:Description>IN03. Visual inspection</moi:Description>
      <moi:Status>T</moi:Status>
      <moi:ActualStartDate/>
      <moi:ActualEndDate>2005-03-14</moi:ActualEndDate>
      <moi:Result>Ok</moi:Result>
      <moi:ParentSlot id="QRLAF.26L8"/>
      <moi:Files>
        <moi:File/>
      </moi:Files>
    </moi:Job>
    <moi:Job>
      <moi:Description>IN04. Mounting of MLI and thermal 
shield</moi:Description>
      <moi:Status>RA</moi:Status>
      <moi:ActualStartDate>2005-03-11</moi:ActualStartDate>
      <moi:ActualEndDate/>
      <moi:Result/>
      <moi:ParentSlot id="QRLAF.26L8"/>
      <moi:Files>
        <moi:File/>
      </moi:Files>
    </moi:Job>
    <moi:Job>
      <moi:Description>IN05. Welding of vacuum jacket</moi:Description>
      <moi:Status>T</moi:Status>
      <moi:ActualStartDate>2005-03-14</moi:ActualStartDate>
      <moi:ActualEndDate>2005-03-14</moi:ActualEndDate>
      <moi:Result>Ok</moi:Result>
      <moi:ParentSlot id="QRLAF.26L8"/>
      <moi:Files>
        <moi:File>NICEXP.TXT</moi:File>
        <moi:File>test.TXT</moi:File>
        <moi:File>baasdasdasd</moi:File>
      </moi:Files>
    </moi:Job>

  <moi:Job>
      <moi:Description/>
      <moi:Status>R</moi:Status>
      <moi:ActualStartDate/>
      <moi:ActualEndDate/>
      <moi:Result/>
      <moi:ParentSlot id=""/>
      <moi:Files>
        <moi:File/>
      </moi:Files>
    </moi:Job></moi:Jobs>
</moi:ImportData>
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe