Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

XSLT and selecting nodes from XML file

  • 30-01-2006 02:49PM
    #1
    Closed Accounts Posts: 658 ✭✭✭


    Hi

    I'm having a bit of bother selecting the contents of a particular node from an XML file using my XSLT file to process it. Here is an explanation of what I need to do

    Imagine this is the XML file here

    ====================================
    [HTML]
    <feed version="0.3" xml:lang="en" xmlns="http://url.org/atom/ns#&quot; xmlns:aj="http://url.company.com/_atom/aj#"&gt;

    <!-- I want to be able to access entry -->

    <entry xmlns="http://purl.org/atom/ns#&quot; xmlns:aj="http://journals.aol.com/_atom/aj#"&gt;
    <!-- There are things in here I want to access -->
    </entry>
    </feed>
    [/HTML]

    Basically, when I run my XSL file on this XML, it looks at entry and then ignores it, even though I want it to delve in there and work on it. Here is some example XSL code

    <xsl:template match="/">
    <xsl:apply-templates/>
    </xsl:template>

    <xsl:template match="entry">
    <!-- do things in here -->
    </xsl:template>

    Does anyone here have any ideas as to what I can do ?


Advertisement