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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by stevecrozz

  1. stevecrozz

    XSLT help - variables in template calls

    And I'm answering my own question, I have a habbit of this. Anyway, the appropraite syntax for putting a variable into <xsl:with-param select=""> is <xsl:with-param name="date-time" select="$dayOfTheWeek" /> and not <xsl:with-param name="date-time" select="'{$dayOfTheWeek}'" />
  2. stevecrozz

    XSLT help - variables in template calls

    I'm using EXSLT date:day-in-week function here, but the question is very general. Here I have a short template, and in the middle of it I declare a variable "dayOfTheWeek", and also call the template to parse that date into a number representing the day of the week. The value of the variable is...
  3. stevecrozz

    Nat. Weather Service DTD/Schema issue?

    I'm using cooktop for testing right now, do you have a better suggestion? It was just the first thing I found that works. The solution will be implemented in PERL using XML::XSLT module.
  4. stevecrozz

    Nat. Weather Service DTD/Schema issue?

    Well, I can remove the line after I get it, but thats one extra step to take. I don't control the way the national weather service sends their xml. They specify a schema in their XML, why should I have to write a script to remove that line when I can just ask them to fix it? Besides it will be...
  5. stevecrozz

    strUsername value not displaying

    well it looks to me like you're passing a string to xmldoc.SelectSingleNode(), and it wants an object. Try to look through that function and see.
  6. stevecrozz

    Nat. Weather Service DTD/Schema issue?

    solution: malformed XSD at the NOAA, I'm working with them on it now.
  7. stevecrozz

    strUsername value not displaying

    what does alert(xmldoc.SelectSingleNode("/prop/code/user/@username").Value) give you?
  8. stevecrozz

    Javascript and XML iterate nodes

    This is more of a javascript question, but you'll use a line like var root = xmlDoc.getElementsByTagName('data'); then some kind of loop like: for (i = 0; i < root[0].childNodes.length; i++) { } be sure to test for an actual node and not just whitespace by using a line like: if...
  9. stevecrozz

    Sort Time

    why don't you test for 12AM with something like <xsl:if test="substring(date,7,2) = 12"> <xsl:if test="substring(date,13,2) = 'am'"> <xsl:sort select="substring(date,10,2)" order="descending" data-type="number" /> <!-- min --> <xsl:sort select="substring(date,13,2)"...
  10. stevecrozz

    Nat. Weather Service DTD/Schema issue?

    This XML feed comes straight from NOAA, I need to transform it via XSLT. Here's my blank stylesheet: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> </xsl:stylesheet> Nothing special, but I get this error: "The element...
  11. stevecrozz

    object scope problems

    thanks very much, its working now, and thats 100% better than before
  12. stevecrozz

    object scope problems

    You were right, but I was unable to get to my objects because at the time I asked for them (the very next line after calling my importXML function) they didn't actually exist yet. I have to wait for the function to finish before calling the resulting objects. I did that by putting my importXML()...
  13. stevecrozz

    object scope problems

    Here's my global array declaration. var feeds = new Array(dim1length); for(i = 0; i < dim1length; i++) { feeds[i] = new Array(dim2length); for(j = 0; j < dim2length; j++) { feeds[i][j] = new Array(dim3length); for(k = 0; k < dim3length; k++) { feeds[i][j][k] = new Array(); } } } I...
  14. stevecrozz

    object scope problems

    I'm loading an XML file in mozilla here: if (document.implementation && document.implementation.createDocument) { xmlDoc = document.implementation.createDocument("", "", null); xmlDoc.onload = fillArrayMoz; } fillArrayMoz() contains a number of new object declarations that look like...
  15. stevecrozz

    function executes the wrong way

    Alright I have it working now, here's the resulting code if anyone would like to see it. Just so everyone knows, most of this code has been borrowed from various other forums and is only partially my own. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...

Part and Inventory Search

Back
Top