This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How to avoid the duplicate being printed [ URGENT !!! ]


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]