Hi i'm having the below xslt code but there is a small problem.
the input xml is as below.
and the xslt is as below
when i add the bold part it is giving the output as in below screen 1 else it is giving the output as in screen 2. but i want them together. and expected output is as in screen 3.
I can't read the pictures neither. The text I copy to an editor to read! It is fairly long and contains some troublesome characters that need further editing...
In any case, I can guess quite a bit what you want and what goes wrong. This is why.
In your xslt document, you have this structure. (quote but edited out irrelevance.)
You see, once you add the intended addition, you effectively produce two templates of equal priority (despite one with a name attribute).
And the lastly placed will, by design, win.
This is of course undesirable and not what you intend to produce.
The remedy (without taking care of other rendering detail) is to make the last additional part a pure named template without match attribute.
And then you call it at the appropriate place in the original template matching chapter. Like this.
This will largely produce the desired result.
ps: I have to replace a-tag by anchor to make the display possible in this forum... (This is going to be more and more painful...)