Re: Different behaviour for the first item in a for-
I was not careful in the way I described this problem. Each group consists of a single title with one or more citations. What I must have said is that I wanted to set the Title in each group to "keep". What I *should* have said was, I want to set the only the first group to "keep". For the input data at the end of this email, that would be the title "Further observations".
Is it a co-incidence that it is alphabetically the first and positioned as first? I'm assuming because of your use of <xsl:sort> that the alphabetical order is important in the determination of first.
All the rest would not be marked "keep".
Then I would have worded your request "the first of the sorted population" not "the first of the group".
Clearly, I do not want (from listing 1):
It wasn't clear to me because you were grouping articles and asked for the first of the group. I believe Martin interpreted it the same way.
I now understand you were grouping the population of articles and need a keep on the first of the sorted population.
However, I do not know XPath well. How do I select only the first group for marking and let the other groups pass without marking them?
I hope this helps.
. . . . . . . . . . . . . Ken
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format