Subject: Re: [xsl] Template matching preceding-sibling. From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 21 Nov 2007 11:37:20 -0500 |
Having read and followed the basic list posting guidelines I thought that I was doing it all right - now I see how wrong I was.
Now, the only thing I have to say abouth your example is: shouldn't Rec[2] match also, since it HAS preceding sibling with activity value different to its own, i.e. Rec[1] (since swimming != biking)?
I hope, I made the difference now obvious - I got 1 string "Ello xslers" and the post author got 2 of them, for the same input processed with one and the same template. That is exactly the reason why I made the request to the list.
Now it's obvious that the XPath and the whole template works fine and my processor is giving correct result, I think this case can be closed now. To me, the only arguable question is how the original post's author could manage to have 2 strings :).
As I said, I believe he just posted untested code sample which he deduced from his more general and complicated input and output, where actualy the problem did exist.
PS: If this time I fail once more to make my point clear then I just don't know how to express it in other way:)
I understand, that this is my lack of English and explanation ability and by no mean not lack of the members' comprehension ability.
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Template matching precedi, Ilya Konanykhin | Thread | RE: [xsl] Record count, cknell |
Re: [xsl] Iterating recursivly on a, ML mail | Date | [xsl] Problem with count() function, collins . tchoumba |
Month |