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 Mike Lewis 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. acsooley

    Questions about save dialog box

    I understand how the query string works and I have the code cleaned up but, If you use the following: http://server:port/webappName/download.jsp?path=\&filename=test.png it will ask to save download.jsp and not test.png
  2. acsooley

    Questions about save dialog box

    I have been reviewing and testing the code in thread695-824677 and have tested it with a page named test.jsp. When sending the info to test.jsp?filename=adam.xml it will ask me to save test.jsp and not adam.xml. Do anyone know of options to change what info is presented in the dialog box? thx...
  3. acsooley

    Looping Question

    Any one know how to do this? I got everything done with this app and it is ready to launch except for this problem.
  4. acsooley

    Looping Question

    I and creating a online task list for work. Have everything working fine except when I display the results say on one user, I get he has done 12 tasks. (Meeting, Web, Course, Ticket, Ticket, Ticket, Web, Meeting, Meeting, Web, Course) each have a time amount for each task. But when I want it to...
  5. acsooley

    Way to count # of instances of string in a string

    I can assure you it is not an assignment. I and creating a online task list for work. Have everything working fine except when I display the results say on one user, I get he has done 12 tasks. (Meeting, Web, Course, Ticket, Ticket, Ticket, Web, Meeting, Meeting, Web, Course) each have a time...
  6. acsooley

    Way to count # of instances of string in a string

    I would like to count the # of instances of a string in a string to return a number. Is there a way to do this in XSL? var adam= adamsooleywasheretoaskaquestionaboutxmladamwouldlikearesponse count(contains($var, "adam") returns 2
  7. acsooley

    creating a variable

    In xsl i would like to create a variable <xsl:variable name="adam" select="$adam, new"/> this seems not to work for me. I am in a for-each loop and would like to keep adding the variable + text like in jsp when you can say String a = "3"; a = a + "7"; a = a + "6"; a = a + "9"...
  8. acsooley

    Adding xml element values

    Sorry I should have done this differently: <home> <ppl> <var>a</var> <tag>4</tag> </ppl> <ppl> <var>c</var> <tag>6</tag> </ppl> <ppl> <var>a</var> <tag>5</tag> </ppl> <ppl> <var>d</var> <tag>5</tag> </ppl> <ppl> <var>c</var> <tag>10</tag> </ppl>...
  9. acsooley

    Adding xml element values

    Have a xml doc like: <home> <tag>4</tag> <tag>6</tag> <tag>5</tag> <tag>5</tag> <tag>10</tag> </home> Is there a way to add the values in xsl to give me the total of tag? So it would output 30? Adam
  10. acsooley

    getElementsByTagName

    I am using DOM to read a xml file in JSP. I am using getElementsByTagName(). When I do this and want "a" I will get returned "This is a test" But I would like to read body and get all the elements, attributes and text. When I read "body" I get nothing returned. Anyone have any suggestions? <art>...
  11. acsooley

    Creating a string of xml elements in jsp

    I have a xml doc like: <art> <ele1/> <ele2/> <ele3/> <ele4/> <english> <body><b color="red">This is a test</b></body> </english> </art> I would like to read in the english tag into a string and keep all of the tags, elements and text. I am having problems. I can read in the <b> tag and all i...
  12. acsooley

    Displaying HTML with xsl

    I have a xml file like: <article> <name>test</name> <english> <hr /> <h2>What Others Say About Us</h2> <p>Does the world know about us? Check out these places:</p> </english> <french> <hr /> <h2>What Others Say About Us</h2> <p>Does the world know about us? Check out these places:</p>...
  13. acsooley

    Absolute and relitive maping

    I am having a problem. Their are 2 servers on one physical box. A testing server (test.adam.ca) and a production server (www.adam.ca) my problem is when I include a xsl file into another xsl file i have to reference the full physical path to the file in order for the page to work. I do not want...
  14. acsooley

    position() question

    thanks
  15. acsooley

    position() question

    It their a easer way to test the position than: test="position()=5 or position()=10 or position()=15 or position()=20 or position()=25 or position()=30 ect..." I need to test for the fifth one. Adam
  16. acsooley

    Merging 2 xsl docs

    Is their a way in JSP to merger 2 xsl files together before you that format the merged xsl with xml to display the result?
  17. acsooley

    XSL IF

    Yes but the $test pram can change. It is passed through the jsp depending what server the page is loaded from.
  18. acsooley

    XSL IF

    Can I use a xsl if before the xsl:template? Such as <xsl:param name="$test"/> <xsl:if test="$test = "new"> <xsl:include href="NEW-URL/text.xsl"/> </xsl:if> <xsl:if test="$test = "old"> <xsl:include href="OLD-URL/text.xsl"/> </xsl:if> <xsl:template match="/"> Other XSL code...
  19. acsooley

    JSP, XSL, XML Question

    I would like to get the server address each time a page is loaded so I can test which path to include the xsl files from. I have a jsp page that parses the xml and xsl files for output and can get the server address in jsp. I have about 10 included xsl files in the first xsl file which loads...

Part and Inventory Search

Back
Top