Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • ramu ajay 9 posts 29 karma points
    Nov 01, 2010 @ 20:49
    ramu ajay
    0

    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

  • Lachlann 344 posts 626 karma points
    Nov 05, 2010 @ 17:11
    Lachlann
    0

    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

  • ramu ajay 9 posts 29 karma points
    Nov 05, 2010 @ 22:01
    ramu ajay
    0

    HI Lachalann, 

    Here the country is nothing but The geotarget

    Sorry for the confusion

    Thanks

  • Lachlann 344 posts 626 karma points
    Nov 08, 2010 @ 17:00
    Lachlann
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft