XSLT: how to get either specific attributes or all elements under a parent element

Discussion in 'XML' started by hisachu, Sep 1, 2010.

  1. hisachu

    hisachu

    Joined:
    Sep 1, 2010
    Messages:
    1
    Likes Received:
    0
    When I put the following it will not return any data.
    <xsl:template match="@abc">
    <xsl:attribute name="abc">
    <xsl:value-of select="."/>
    </xsl:attribute>
    </xsl:template>

    Pls help.
     
    hisachu, Sep 1, 2010
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.