Filter data in xsl based output on button click.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dotpranay
    New Member
    • Apr 2007
    • 9

    Filter data in xsl based output on button click.

    Hi,

    I have a web application that generates an xml file and displays it in a popup window. Also, A xsl related tag is being added at the start of the file due to which the xml file will be shown in a formatted way(using divs) in the browser.

    Now the requirement is to have a button in the page and on clicking that the data should be re-rendered in the page with some filteration. (This button should be a kind of toggle button to show full data and filtered data.)

    Avoiding the button, i tried to read an URL param in the xsl file using which i can filter the data, but was not successful.

    Please let me know of possible ways this can be achieved.

    Thnx in advance guys...
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    usually, parameters (i.e. <xsl:param> or <xsl:variable >) in an XSL file are set using the setParameter() method (the exact name depends on what implementation you use)

    Comment

    Working...