[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How to avoid the duplicate being printed [ URGENT

Subject: Re: How to avoid the duplicate being printed [ URGENT !!! ]
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Mon, 4 Jun 2001 14:21:32 +0100
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.