IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  help in xslt in comparing

    Posted 02/19/05 09:14 PM

    Hi
    I am very new to xslt and have been trying to figure this out for a long time but without much sucess.
    What I am trying to do is to allow a user type a word into an input box and then that it would search an rss file to see if that word is contain in the desciption of an item.

    I have the following code, which works for me if I was searching for the language:
    <xsl:copy-of select=“item[contains(description/@language,$filterBy)]”/>
    so in the rss file desciption is as follows:
    some text

    What I would like to have is the description to be like:
    some text
    and then in my xslt file be able to compare “some text” with @language(which contains what the user entered). I do not know how to access the text and how to compare it to the @language.

    Please if any one can help me it would be much appreciated,
    Kind Regards


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: help in xslt in comparing

    Posted 02/21/05 06:17 PM

    Hi,
    I hope this example helps. I made some assumptions about your xml input and your result, so I have attached my input and output xml files to make things clearer.
    HTH.
    Example.zip (696 Bytes)


    #API-Management
    #Tamino
    #webMethods


  • 3.  RE: help in xslt in comparing

    Posted 02/21/05 06:40 PM

    Thank you very much for that. I have that bit working now what I have is a local rss.xml file called
    in a html file and is filtered by an xslt.xml file. This works alright.

    I now what my html file to link to an opml file so that it can access
    numberous rss files. I can not get this to work, I have tried saving a
    local file as .opml, and then as .xml and I have tried linking it to an
    opml file on the internet.

    Any soultions?

    Thank you,
    Kind Regards


    #Tamino
    #webMethods
    #API-Management