I have the following in my config file

       <entity name="meta"
          dataSource="myfilereader"
          processor="XPathEntityProcessor"
          url="${jcurrent.fileAbsolutePath}"
          stream="false"
          forEach="/TEI/teiHeader/fileDesc"
          xsl="xslt/meta.xsl"
          >
          <field column="note" xpath="/TEI/teiHeader//note" flatten="true" />
          <field column="annotator" xpath="/TEI/teiHeader//annotator" />
          <field column="scribe" xpath="/TEI/teiHeader//scribe" />
          <field column="recipient" xpath="/TEI/teiHeader//recipient" />
       </entity>


In the XML file is  (snippet):

<notesStmt>
     <note type="manuscript_description">Handwritten by Mary Baker Eddy.</note>
     <note type="editorial">This document is a draft of Eddy's poem, "<title level="a">Woman's 
Rights</title>."  See page 21 of Eddy's <title level="m">Poems</title> to read the published version.</note>
</notesStmt>

There are "note" nodes at the xpath="/TEI/teiHeader//note"

but only the last is stored and searchable?  This is happening to all instances 
where there are multiple nodes in the xpath.  Only the last node is stored?

Is there something wrong with my config file?

thanks,

Scott

Reply via email to