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

duplicates result from xslt

Subject: duplicates result from xslt
From: "Norma Yeazell" <Nyeazell@xxxxxxxxx>
Date: Fri, 4 Jun 2004 13:01:37 -0400
xslt duplicates
I'm sure this isn't the most efficient way but it is giving me results.
XML to XML.
Can someone tell me why I'm getting my result once where I want it and
then again at the end of file.

Snipet:

<xsl:template match="//condition[1]">
<eqpconds>
<eqpconds-setup-item>
<condition><xsl:value-of select="."/></condition>
<itemref><xsl:copy-of select="link"/></itemref>
</eqpconds-setup-item>
<xsl:for-each select="following-sibling::condition">
<eqpconds-setup-item>
<condition><xsl:value-of select="."/></condition>
<itemref><xsl:copy-of select="link"/></itemref>
</eqpconds-setup-item>
</xsl:for-each>
</eqpconds>


Result:

<eqpconds>
<eqpconds-setup-item>
<condition>text is here.</condition>
<itemref> 
<link doc="njy" sdoc="M04-01" refdoctype="maintain" refelemtype="root">
<prompt>text is here.</prompt>
</link> 
</itemref>
</eqpconds-setup-item>
</eqpconds>

-------
-------

</maintsk>
<eqpconds>
<eqpconds-setup-item>
<condition>text is here.</condition>
<itemref> 
<link doc="njy" sdoc="M04-01" refdoctype="maintain" refelemtype="root">
<prompt>text is here.</prompt>
</link> 
</itemref>
</eqpconds-setup-item>
</eqpconds>
</maintwp>


Ending should look like:
</maintsk>
</maintwp>



Confidentiality Notice
The information contained in this e-mail is confidential and intended for use only by the person(s) or organization listed in the address. If you have received this communication in error, please contact the sender at O'Neil & Associates, Inc., immediately. Any copying, dissemination, or distribution of this communication, other than by the intended recipient, is strictly prohibited.


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.