Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Sidney5

    Help with XSL, <xsl:for-each ...>

    Hi Here is my XML doc. Below that is what my style sheet looks like. I want the output to disply CL005812 0 ITX_XVER_S6_5_vol 20000000 EUR LnB Tar where the calendar value is LnB Tar with a space between LnD and Tar but the calendar value does not come out correct any ideas why...
  2. Sidney5

    Getting file that was last modified

    Hi I am trying to read from a file which has got 10 fields and I am interested when the fifth field (called adpNumber) has got a duplicate in it. I want to get a list of the adpNumbers that are duplicates and I will use that list in an sql statement. Please can you tell me how to get a list...
  3. Sidney5

    Help with XSL, <xsl:for-each ...>

    Hi I originally posted some questions a few months ago about an XSL that I was writing. It has come back to haunt me because it is not doing something that it was supposed to do. Please could you scroll up to maybe refresh your memory. The <date> and <factor> elements can appear many times...
  4. Sidney5

    Getting file that was last modified

    I was able to open up the last modified file but I am having difficulty in using pattern matching when reading from it. Pattern matching is not trival in Perl and I would appreciate your assistance. Here is how my file looks like that I have opened with CASH_FILE as the file handle...
  5. Sidney5

    Getting file that was last modified

    Hi again I have taken your ideas and coded the solutions in Perl. However, I get an error message when I try to retrive the lastest file from a directory. When I use these 2 lines (line numbers in brackets) : 228) my $latest_cashfile = (sort {(stat($b))[9] <=> (stat($a))[9]}...
  6. Sidney5

    Getting file that was last modified

    Hi All Thanks for your sampe code and your suggestions. A work colleague also showed me some sample code in a Perl script and. I liked it and chose to use it so have a look: my $cashflow_file = get_latest_cashflow_file($srcRootCashFlow); sub get_latest_cashflow_file { my $dir = $_[0]...
  7. Sidney5

    Getting file that was last modified

    Hi I am failry new to Perl but picking it up. However I am stuck on one area. I need to find the file in a particular directory that was last modified. I have looked at stat 9 but still am not too sure as how to go through all the files, get their timestamp and then assign the file that was...
  8. Sidney5

    Help with XSL, &lt;xsl:for-each ...&gt;

    Hi Yes, thanks! I must have over looked the fact that you took off 'item[position()>1' without realising its effects if I kept it in. Also, I have taken away all of the '../..' stuff and I have incorperated for variables, eg <xsl:variable name="x". I can see that one of the main benefits of...
  9. Sidney5

    Help with XSL, &lt;xsl:for-each ...&gt;

    Hi Guys I know that you helped me last week with my XSL but I found another snag in it and since I am relatively new to XSL, I find to tricky to solve. Here is my XSL as it stands. <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0"...
  10. Sidney5

    Help with XSL, &lt;xsl:for-each ...&gt;

    Hi Thank you very much! That seems to work now :) I was in the process of typing a response to your first reply and this is how far I got when I got your solution .... Each entity has got one Name, Setting Date, Label, Default Speed, and Speed tag but it can contain one or more <item> tags...
  11. Sidney5

    Help with XSL, &lt;xsl:for-each ...&gt;

    Hi Here is what my XML file looks like: <root> <entity> <name>C</name> <settingDate>2006-06-23</settingDate> <label>dwg</label> <defaultSpeed>Base</defaultSpeed> <schedules> <schedule> <speed>Low</speed> <items> <item>...
  12. Sidney5

    Help with XSL, &lt;xsl:for-each ...&gt;

    Hi Below is a sample of an XML file that I have. In every <Entity>, 3 tags always appear exactly once, which are <Name>, <Date> and <Speed>. The other two tags, <Setting> and <Label> are a pair and they may appear any number of times. For instance, an <Entity> could contain 3 <Setting> and...

Part and Inventory Search

Back
Top