troubleshooting Question

Adding a new filter into XSL project

Avatar of mavmanau
mavmanauFlag for Australia asked on
Web Languages and StandardsXMLJavaScript
9 Comments1 Solution606 ViewsLast Modified:
Hi Guys,

Thank you for taking the time to take a look at my question, your assistance is most appreciated.  

Take the sample XML below:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<document xmlns:xsi="">
            <Method>Direct Debit</Method>
            <Lead_Gen>Web FSM</Lead_Gen>
            <Broker_Code>FB - 01</Broker_Code>
            <State>Western Australia</State>

to filter the product  - I build a selection box and populate it on the fly with all different products.  Below is the code that I use.

 <xsl:for-each select="/document/row[generate-id() = generate-id(key('product', Product)[1])]">
                        <listproductrow name="Product_{Product}" pvalue="{Product}">
                            <xsl:attribute name="selected">
                                <xsl:if test="Product = $product">

What I want to do, is to add a select box that has three options:
Never Paid (when In_Actual = 0)
Paid (When In_Actual > 0)
All (all of the above)

how would I go about this?  would I send select box value back to a javascript function then do a transform, or is there a way I can do it without sending the value out to javascript?

Any light you could shine on my question, I would be most appreciative!!
Gertone (Geert Bormans)
Information Architect
Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros