Hi! thanks for the quick reply, apreciate it!
i have my codes in the office, actually i'm working on Weblogics XTAGS which is somehow very similar to XSL, but to give you an idea, my code is somewhat like this:
<xtags:parse>
<xtags:foreach select="Rapers">
<xtags:foreach select="Category/CategoryList">
<xtags:variable id="CATID" select="CatID"/>
<xtags:if test="$CATID='001'">
<xtags:valueOf select="Name"/>
<xtags:foreach select="Songs/SongList">
<xtags:valueOf select="SongID"/>
</xtags:foreach>
</xtags:if>
</xtags:foreach>
</xtags:foreach>
</xtags:parse>
And my XML is like this
<ROOT>
<Rapers>
<Name>Puff Diddy</Name>
<Category>
<CategoryList>
<CatID>001</CatID>
<CatName>English</CatID>
</CategoryList>
<CategoryList>
<CatID>002</CatID>
<CatName>Chinese</CatName>
</CategoryList>
</Category>
<Songs>
<SongList>
<SongID>Rap1</SongID>
<SongName>Dirty YO!</SongName>
</SongList>
<SongList>
<SongID>Rap2</SongID>
<SongName>YEEP TEEP</SongName>
</SongList>
</Songs>
</Rapers>
<Rapers>
.....
</Rapers>
</ROOT>
my code displays the rapers and filter them according to category but the songs dont display.
This is what i can remember... sorry i'm still new to xsl
thanks again!
|