Copied to clipboard

Flag this post as spam?

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


  • Rakesh 1 post 21 karma points
    Mar 26, 2013 @ 12:40
    Rakesh
    0

    parent node number Selection in xslt

     

    Hi I have the below xml

     <primaryie>
      <content-style font-style="bold">VIRRGIN system 7.204, 7.205</content-style> 
      </primaryie>

    and by applying the below xslt i'm able to select the number.

    <xsl:value-of select="current()/text()"/>

    but in the below case

        <primaryie>
      <content-style font-style="bold">VIRRGIN system</content-style> 
      7.204, 7.205 
      </primaryie>

    how do is select the number? i want something like using xslt:parent of content style.

    also i have some cases where both the xmls come together. please let me know how to select the number if both cases are present.

    Thanks

     

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Mar 26, 2013 @ 23:28
    Jan Skovgaard
    0

    Hi Rakesh and welcome to our :)

    How is the XML generated? Can you control how it's generated? If so I think you should perhaps aim for at better structure.

    Looking forward to hearing from you.

    /Jan

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies