xsl-list
[Top] [All Lists]

Re: [xsl] Selecting all specific children

2012-01-11 12:14:51
Hello Matthieu,
Thanks for your input. The context is much higher up the tree. The XML is more like:
<List> <- root
   [Here is my context]
   <Year>
       <Month>
           <Day>
               <Set>
                   <Stamp>
                       <Inscriptions> <- is called for this
                       <Inscriptions> <- not called for this

However, because I was processing the first <Inscription in each Stamp, I assumed context was not relevant.That is, from the indicated context, <template match="Inscriptions" mode="english"> is called for the first occurrence of <Inscriptions>, but subsequent occurrences are ignored. I had thought that <apply-templates select="//Inscriptions" mode="english"/> applied the template to all the <Inscriptions> children, but clearly that is wrong - only the first <Inscriptions> child of each of the several thousand <Stamp> elements is processed. I have not been able to isolate a runnable segment as my heating failed shortly after I posted the problem.

Thanks for your suggestions,
Mark


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--