User Profile

Collapse

Profile Sidebar

Collapse
tonecj
tonecj
Last Activity: Feb 28 '08, 11:42 PM
Joined: Dec 12 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • tonecj
    replied to Alternative to VBA IIF
    in XML
    That works, thanks!!!
    See more | Go to post

    Leave a comment:


  • tonecj
    started a topic Alternative to VBA IIF
    in XML

    Alternative to VBA IIF

    Hi team I've got a file that looks like the below:

    Code:
    <xsl:for-each select="index/resource[(contains(title,$search))]">
      <xsl:text>Print stuff here</xsl:text>
    </xsl:for-each>
    However... Ideally I would like to change the select statement if another variable "$page" has a value. So if $page wasn't blank it would read:

    Code:
    <xsl:for-each select="index/resource[(contains(title,$search)
    ...
    See more | Go to post

  • tonecj
    replied to Traversing XML with Javascript
    in XML
    That's it, works perfectly.

    Thanks!
    See more | Go to post

    Leave a comment:


  • tonecj
    replied to Traversing XML with Javascript
    in XML
    I've managed to get no where today with the search... Does anyone know how I can pass the value of a textbox to an xsl:param???

    What I'm trying to do now is:

    <xsl:if test="contains( name, 'MYSEARCHSTRING '">

    Where MYSEARCHSTRING is the value in a text box.

    Thanks again!
    See more | Go to post

    Leave a comment:


  • tonecj
    replied to Traversing XML with Javascript
    in XML
    Thanks for the tip! The data comes straight in using XSL, no loading time at all.

    Much appreciated!

    Last question for the day, I'm currently googling it with little luck, is there a way to use XSL to do a search on the XML file based on text in a textbox?

    Thanks
    See more | Go to post

    Leave a comment:


  • tonecj
    started a topic Traversing XML with Javascript
    in XML

    Traversing XML with Javascript

    Hi team I'm traversing an XML file with 3000 + records in it. I've now run into some serious performance issues as a consequence... Is there an alternative to the below code I'm using? Or is there something in here that is really slowing it down? Any help would be much appreciated, it is currerntly taking 15 seconds to traverse my XML file!!!

    XML FILE
    Code:
    <supplier>
    <id>001</id>
    <name>My Supplier</name>
    ...
    See more | Go to post
No activity results to display
Show More
Working...