[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

filtering data

Subject: filtering data
From: "Meenakshi Nanjundeswar" <meenananju@xxxxxxxxxxx>
Date: Thu, 26 Oct 2006 12:34:10 -0500
filtering data through xml
Hi:

I am passing two paramters to my style sheet param1 and param2. These values are also present as elements on the XML.

For example:

<xsl:param param1/>
<xsl:param param2/>

param1 and param2 are also elements on the schema with a root element <paramroot>.

Param1 can have values val1, val2, val3.
Param2 can have values pval1, pval2, pval3.

Now the XML looks like this:

<root>
<step1>
<text><para>Step1</para></text>
<paramroot>
	<sparam1>val1</param1>
    <sparam2>pval3</param2>

</paramroot>
</step1>

<step1>
<text><para>Another Step1</para></text>
<paramroot>
<sparam1>val2</param1>
<sparam2>pval1</param2>
</paramroot>

<step2>
<text><para>Step2</para></text>
<paramroot>
<sparam1>val2</param1>
<sparam2>pval1</param2>
</paramroot>

</step2>
</step1>
</root>


The issue I am having is, I have declared the two parameters on top of the style sheet. Now the value of these two parameters should be compared with the value of param1 and param2 inside step1 and step2 and only that step whose values macth the paramters should be displayed.


For example if $param1=val2 and $param2=pval1, it matches step2 and only that step should be displayed. So the output should have only:

Step2.

Can anybody help me resolve this? I have tried passing paramters inside the steps to check the values but I always get all the steps displayed.

Thank you for your help.

_________________________________________________________________
Find a local pizza place, music store, museum and morethen map the best route! http://local.live.com?FORM=MGA001


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.