Connecting Tech Pros Worldwide Help | Site Map

Need help transforming xml with an xslt

Member
 
Join Date: Mar 2008
Posts: 56
#1: Aug 25 '09
Hi I am looking for help with an xsl transform of an xml file. The problem is with <xsl:with-param>.

The following is what I have:

Expand|Select|Wrap|Line Numbers
  1. <xsl:param name="paramTest">$LINKNUM$</xsl:param>
  2.  
  3. <key name="$LINKNUM$">SELECT count(1) from applications</key>
  4.  
  5. <xsl:choose>
  6.       <xsl:when test="$paramTest = '0' ">
  7.             do this........
  8.       </xsl:when>
  9.  
  10.       <xsl:otherwise>
  11.             do this.........
  12.       </xsl:otherwise>
  13. </xsl:choose>
This select count returns 0 which is what I want but it never actually goes into the xsl:when part, it always falls into xsl:otherwise. Don't worry about the order of the tags etc I've just cut them out of the file
Member
 
Join Date: Mar 2008
Posts: 56
#2: Aug 25 '09

re: Need help transforming xml with an xslt


Forget about it actually, I've just done it differently using a stored procedure.... :/
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#3: Aug 25 '09

re: Need help transforming xml with an xslt


ok, though I was wondering, how you assign the value of $paramTest. this surely can’t be done while running the transformation…?
Reply