Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting param values dynamically

Status
Not open for further replies.

GIGN

Programmer
Oct 6, 2000
1,082
NZ
I am processing a set of nodes - but I am checking for a specific one inside the template with an if.

Then if the record is not found - I need to display a message, trouble is it gives this message for every node which does not match. I just want to display this once, hence my need to set a parameter indicating the message has already been output.

I have tried matching my template better by using something like
<xsl:template match=&quot;//FOLDER/ORDER[contains($orderID,@orderNumber)]&quot;>

where $orderID is set via ASP.
to check for the matching order number, but it seems we cannot use parameters in that type of XPath expression.

So, I would like to be able to reset the value of a param - is there any way to do this? I can't find any reference to it.

<bb/>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top