Subject: Re: [xsl] XPath Problem. From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 08 Jan 2003 16:16:19 -0500 |
<RootNode> <DInfo name="D1"> <TInfo name="t1"></T1> <TInfo name="t2"></T2> </DInfo> <DInfo name="D2"> <DInfo name="D3"> <TInfo name="t1"></T1> <TInfo name="t2"></T2> </DInfo> <DInfo name="D4"> <DInfo name="D5"> <TInfo name="t3"></T1> <TInfo name="t4"></T2> </DInfo> <DInfo name="D6"> <TInfo name="t3"></T1> <TInfo name="t4"></T2> </DInfo> </DInfo> </DInfo> </RootNode>
Required Output:- <xsl:key name="TInfo-Key-By-Name" match="TInfo" use="@name"/>
<xsl:for-each select="TInfo[count(.|key('TInfo-Key-By-Name',@name)[1]) = 1]"> <xsl:call-template name="ShowTInfo"> </xsl:for-each> 1. So when I have the RootNode Selected this works correctly and displays me t1, t2, t3 , t4 only once.
2. When I am on <DInfo name="D2"> I need to display t1, t2, t3, t4. However only t3 and t4 get displayed since it thinks that t1 and t2 have already been displayed.
Cheers, Wendell
====================================================================== 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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XPath Problem., Sandeep_Karandikar | Thread | RE: [xsl] XPath Problem., Sandeep_Karandikar |
Re: [xsl] How do I create an FO ind, W. Eliot Kimber | Date | Re: [xsl] xml.load style file probl, asim |
Month |