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. jba6511

    xpath with many parent/child nodes

    sorry sorry I mistyped. It works fine. Thank you so much. I promise to leave you guys alone for awhile now with the questions.
  2. jba6511

    xpath with many parent/child nodes

    tried both of those and I get no output?!?
  3. jba6511

    xpath with many parent/child nodes

    ok this is the last question pertaning to this example. I am trying to get the approval number that corresponds to the loan amount of 1000. From the previous help I have recieved here I am trying to use this syntax: <xsl:template match="Applications"> <p> <xsl:value-of...
  4. jba6511

    xpath with many parent/child nodes

    Jumped ahead of myself again. I was able to figure out how to do names, loan amounts and addresses. Still can not figure out how to output the loan amounts and terms in a good format though. I do not know much html.
  5. jba6511

    xpath with many parent/child nodes

    that tutorial is what I have been looking at for examples. The SAMS book does not seem to have alot of tutorials in it or examples to follow. I have managed to output the loan amount and the interest rate. However, I would like to format it so I can <xml:text>Loan Amount: </xml:text> and then...
  6. jba6511

    xpath with many parent/child nodes

    OK last question, I swear. How do you select loan amount and interest for each approval? I can select and output all the loan amounts and then all the interest, but not the loan amount then interest, loan amount, interest, etc.
  7. jba6511

    xpath with many parent/child nodes

    Nevermind guys I got it working outputting all of the approval numbers. I need to use a for-each and then a value-of select=".". Thanks for the help.
  8. jba6511

    xpath with many parent/child nodes

    This is what I have now in order to output all the approval numbers: <xsl:template match="document"> <html> <body> <xsl:apply-templates/> </body> </html> </xsl:template> <xsl:template match="Applications"> <p> <xsl:value-of select="//Approvals/@approvalNumber"/> </p>...
  9. jba6511

    xpath with many parent/child nodes

    it still seems to only output one number instead of all the approval numbers. Any ideas?
  10. jba6511

    xpath with many parent/child nodes

    thanks, adding that last template match got rid of the rest of the text except the numbers. What if I wanted to select just the approval numbers? replacing //loanAmount with //@approvalNumber does not seem to work. Would I have to use a for-each to catch all the approval Numbers? Thanks again...
  11. jba6511

    xpath with many parent/child nodes

    also, I am still getting other data such as the comment and address listed as well instead of just the loan. What is causing this to be listed as I am only outputting the loan?
  12. jba6511

    xpath with many parent/child nodes

    when I use the following syntax, it lists one number and not all of them. Does the xpath expression need to be used elsewhere in order to pick up all of the numbers? <xsl:template match="document"> <html> <body> <xsl:apply-templates/> </body> </html> </xsl:template>...
  13. jba6511

    xpath with many parent/child nodes

    Thanks for helping me through all this xpath guys. I am slowly getting it. I now have a doc that is a little different from those that I have been working with. It looks like this: <?xml version="1.0" encoding="UTF-8"?> <xmp:document xmlns:xmp="http://www.example.org"...
  14. jba6511

    xpath help

    ok that cleared some things up. Thanks
  15. jba6511

    xpath help

    solution 1 worked. Let me see if I understand whats happening though. It is saying select all the name, look through all the child nodes (is that what the ::* is for) to find node features then feature whos thext is equal to Remote?
  16. jba6511

    xpath help

    It is still not outputting correctly. Is this correct? <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="storess"> <html>...
  17. jba6511

    xpath help

    I am working on xpath and have some questions. I have the following document: <?xml version='1.0'?> <stores> <store name='Red'> <computers> <computer>Dell</computer> </cpmputers> </store> <store name='Green'> <computers> </computers> <features>...
  18. jba6511

    XSLT Output Question

    thanks. That worked like a charm. I will be trying to work some more with xpath later so I am sure I will have some more questions for you guys. thanks for all of the help so far.
  19. jba6511

    XSLT Output Question

    so something like: <xsl:for-each select="equipmentList"> <xsl:for-each select="equipment"> <xsl:value-of select="equipment"/> </xsl:for-each> </xsl:for-each> Is that correct?
  20. jba6511

    XSLT Output Question

    I have an xml document like the one below: <room name='Green'> <equipmentList> </equipmentList> </room> <room name='White'> <equipmentList> <equipment>Projector</equipment> <equipment>PC</equipment> <equipment>Mac</equipment> </equipmentList> </room> <room...

Part and Inventory Search

Back
Top