Re: [xsl] Selecting all specific children

Subject: Re: [xsl] Selecting all specific children
From: "Mark" <mark@xxxxxxxxxxxx>
Date: Wed, 11 Jan 2012 11:14:34 -0700
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


Current Thread