xsl-list
[Top] [All Lists]

[xsl] causal for each issue

2012-07-30 13:53:26
hi
The result of following for-each statement is
<Depot/> and not as exected. I could not find the mistake !
Here are the XSLT and the XML file :

<xsl:for-each select="LDL">             
<xsl:for-each select="G2[1]/G502/(1st_Name,2nd_Name, 3nd_Name,4nd_Name, 
5nd_Name)[. =('FF')]">
<Depot>
<xsl:value-of select="3rd_Logical"/>
<xsl:value-of select="2nd_Logical"/>
<xsl:value-of select="3rd_Logical"/>
<xsl:value-of select="4th_Logical"/>
<xsl:value-of select="5th_Logical"/>
<xsl:value-of select="6th_Logical"/>
</Depot>
</xsl:for-each>
</xsl:for-each> 
**********************
<LDL>           
        <G2>            
                <G502>
                
                        <1st_Name>FF</1st_Name>
                        <2nd_Logical>MLBIE85</2nd_Logical>
                        <3rd_Name>FW</3rd_Name>
                        <_4th_Logical>FW</_4th_Logical>
                        <3rd_Logical>ENMST01</3rd_Logical>
                        <5th_Logical>USPTR05</5th_Logical>
                </G502>
        </G2>
        <G2>            
                <G502>
                        <nd_Name>FF</2nd_Name>
                        <2nd_Logical>ATVIE85</2nd_Logical>
                        <2nd_KNTT_Flag>0</2nd_KNTT_Flag>
                        <3rd_Name>FW</3rd_Name>
                        <_4th_Logical>FW</_4th_Logical>
                        <3rd_Logical>DEHAM05</3rd_Logical>
                </G502>
        </G2>   
</LDL>

brg
henry

 

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


<Prev in Thread] Current Thread [Next in Thread>