Copied to clipboard

Flag this post as spam?

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


  • w_moze 30 posts 25 karma points
    Apr 29, 2009 @ 22:44
    w_moze
    0

    Repeating first record in external XML document

    I'm reading in an external XML document and attempting to loop over the nodes but the output repeats the first record in the XML document for each record.

    My external XML doc is in the following format



    Can someone shed some light on this?

    My Code:
    --------------------------------------------------------------------------------------------------------------

    ]>

    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxml="urn:schemas-microsoft-com:xslt"
    xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon"
    xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes"
    xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath"
    xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions"
    xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets"
    xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings"

    xmlns:umbraco.library="urn:umbraco.library"
    exclude-result-prefixes="msxml umbraco.library">





    Positions Available:























    posted -





    No jobs have been posted...








  • Arjan den Boer 76 posts 31 karma points
    Apr 30, 2009 @ 10:04
    Arjan den Boer
    0

    Should be

  • w_moze 30 posts 25 karma points
    Apr 30, 2009 @ 14:49
    w_moze
    0

    I had tried that ... I don't get any return values if I try it that way. Is it something else?

  • w_moze 30 posts 25 karma points
    Apr 30, 2009 @ 15:14
    w_moze
    0

    Ok... I figured it out. I had to do //job so that all job nodes were selected...

    Here's my code in case anyone cares...

    --------------------------------------------------------------------------------------------------------------

    ]>

    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxml="urn:schemas-microsoft-com:xslt"
    xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon"
    xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes"
    xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath"
    xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions"
    xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets"
    xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings"

    xmlns:umbraco.library="urn:umbraco.library"
    exclude-result-prefixes="msxml umbraco.library">





    Positions Available:























    posted -





    No jobs have been posted...







Please Sign in or register to post replies

Write your reply to:

Draft