This is the xml I have.......IF THERE IS ANY WAY That I can First check all the nodes for the country If there is any match for the country display it and end otherwise start the loop once again and check for the regions and if there is a match display and start the loop and render the all node
can you clarify what you mean by country? I couldnt see any nodes that matched the anme country. Would you be looking to see if any of the nodes contained text referencing a country.
Im still a little unsure of what you are trying to acheive. Can the contents if the GeoTarget node be either a country or a region? If so then you would need to perform a look up of the contents of the geotarget node against your list of countries. If this is the case then it might be easier to use .NET?
If I have misunderstood please let me know and we can figure out a solution.
Xslt Loop
<?xml version="1.0" encoding="utf-8" ?>
<root>
<NestedContent>
<Module>
<StyleSelector>cream</StyleSelector>
<global>true</global>
<GeoContent>
<BodyContents>
<GeoTarget>all</GeoTarget>
<WidgetTitle>WW</WidgetTitle>
<ModuleText>ww</ModuleText>
<ContentLink></ContentLink>
</BodyContents>
<BodyContents>
<GeoTarget>Americas</GeoTarget>
<WidgetTitle>AMER REGIONS</WidgetTitle>
<ModuleText>amer regions</ModuleText>
<ContentLink></ContentLink>
</BodyContents>
<BodyContents>
<GeoTarget>in</GeoTarget>
<WidgetTitle>in</WidgetTitle>
<ModuleText>in</ModuleText>
<ContentLink></ContentLink>
</BodyContents>
<BodyContents>
<GeoTarget>ch</GeoTarget>
<WidgetTitle>ch</WidgetTitle>
<ModuleText>ch</ModuleText>
<ContentLink></ContentLink>
</BodyContents>
<BodyContents>
<GeoTarget>us</GeoTarget>
<WidgetTitle>US Country</WidgetTitle>
<ModuleText>US Cuntry </ModuleText>
<ContentLink></ContentLink>
</BodyContents>
</GeoContent>
</Module>
</NestedContent>
</root>
This is the xml I have.......IF THERE IS ANY WAY That I can First check all the nodes for the country If there is any match for the country display it and end otherwise start the loop once again and check for the regions and if there is a match display and start the loop and render the all node
any replies are greatly apreciated..Thank You
Hey,
can you clarify what you mean by country? I couldnt see any nodes that matched the anme country. Would you be looking to see if any of the nodes contained text referencing a country.
L
HI Lachalann,
Here the country is nothing but The geotarget
Sorry for the confusion
Thanks
Hey Ramu
Im still a little unsure of what you are trying to acheive. Can the contents if the GeoTarget node be either a country or a region? If so then you would need to perform a look up of the contents of the geotarget node against your list of countries. If this is the case then it might be easier to use .NET?
If I have misunderstood please let me know and we can figure out a solution.
L
is working on a reply...