another transformation que

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zoom007
    New Member
    • Jun 2007
    • 6

    another transformation que

    Hi everyone,
    I also have some transformation issues.I've received good answers from my previous posts and I'm someone would help me with this one too.How do I transform:

    <root min="1">
    <limit sid = "0" mod = "2">
    <hd>ID<hd>
    </limit>
    </root>

    to:

    <lastroot>
    <ld>ID</ld>
    </lastroot>


    Thanks!!!!!!
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    Assuming XSLT, just take the parts you need:
    Code:
    <xsl:template match="root">
    <lastroot>
    <ld><xsl:value-of select="limit/hd"/></ld>
    </lastroot>
    </xsl:template>
    Sorry, can't tell if that's Id or ld (i or L)

    Comment

    Working...