Advertisement

07.14.2008 at 11:00AM PDT, ID: 23563542
[x]
Attachment Details

using xsl:choose to set parameters based on data passed into XSLT file

Asked by greatseats in Extensible Stylesheet Language Transformation (XSLT), Extensible Markup Language (XML)

Tags: ,

Hello,

I am trying to do the following in XSLT but I can't get it to work.  Param "param_1" is passed into the XSLT file during transofmraiton.

Is this possible?  Am I missing something?  Thanks in advance!Start Free Trial
1:
2:
3:
4:
5:
6:
7:
<xsl:param name="param_1"/>
<xsl:param name="param_2"  select="xml/node/item"/>
<xsl:choose>
  <xsl:when test="$param_2 = 'no item'">
    <xsl:param name="param_2" select="$param_1"/>
  </xsl:when>
<xsl:choose>
[+][-]07.14.2008 at 12:29PM PDT, ID: 22001213

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.14.2008 at 12:46PM PDT, ID: 22001395

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.14.2008 at 01:13PM PDT, ID: 22001653

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Extensible Stylesheet Language Transformation (XSLT), Extensible Markup Language (XML)
Tags: XSLT, All
Sign Up Now!
Solution Provided By: zc2
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.14.2008 at 11:58PM PDT, ID: 22004645

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.14.2008 at 11:59PM PDT, ID: 22004648

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628