This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How to avoid the duplicate being printed [ URGENT !!! ]
- To: "Sri ni" <srini75 at hotmail dot com>
- Subject: Re: [xsl] How to avoid the duplicate being printed [ URGENT !!! ]
- From: Jeni Tennison <mail at jenitennison dot com>
- Date: Mon, 4 Jun 2001 14:21:32 +0100
- CC: xsl-list at lists dot mulberrytech dot com
- Organization: Jeni Tennison Consulting Ltd
- References: <F116xpTljBOh8s4KWiG00001e3b@hotmail.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi Srini,
Sorry, I can't duplicate the error that you get. When I use the
following template (which is basically equivalent to yours):
<xsl:template match="Message">
<DIV onclick="getMessage(this);"
style="margin-left:36px;cursor:default;"
messageID="{@id}"
sectionID="{@sectionId}"
parentID="{@parentId}">
<xsl:value-of select="Title" />
<xsl:text> by </xsl:text>
<xsl:value-of select="Author"/>
<xsl:variable name="id" select="@id" />
<xsl:apply-templates select="../Message[@parentId=$id]"/>
</DIV>
</xsl:template>
I get:
first title by vasan
reply to first titel by vasan
re re first title by vasan
second title by vasan
rely to second title by vasan
third title by vasan
reply to third title by vasan
fourth title by vasan
reply to fourth title by vasan
fifth title by vasan
Perhaps you're applying templates to the other Message elements
somewhere other than in the templates that you gave in your message?
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list