[Home] [By Thread] [By Date] [Recent Entries]
Yan,
Your xsl:for-each is throwing you off. It's just selecting the current node; but since it is, position() is always 1. Try it without. If position() is still getting thrown off (which could be happening if you are processing nodes you haven't accounted for -- for example, whitespace-only text nodes in your source which you can only see if you know how to look for them), then try using, instead, count(preceding-sibling::*) which is more robust than position() for these purposes; or alternatively make sure the apply-templates that is getting you this template is constructed to select just the nodes you want (probably the best solution). If this is unclear, we can explain it better if we see both some source data, and the template(s) one step "above" this template (i.e. where elements are selected to which this template matches -- i.e. the one that says mode="diff_cols"). Concrete examples make discussion easier. :-) Good luck, Wendell At 06:14 PM 1/23/02, you wrote:
====================================================================== 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 ====================================================================== XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



