Need help transforming xml with an xslt

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • moorcroft
    New Member
    • Mar 2008
    • 57

    Need help transforming xml with an xslt

    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:

    Code:
    <xsl:param name="paramTest">$LINKNUM$</xsl:param>
    
    <key name="$LINKNUM$">SELECT count(1) from applications</key>
    
    <xsl:choose>
          <xsl:when test="$paramTest = '0' ">
                do this........
          </xsl:when>
    
          <xsl:otherwise>
                do this.........
          </xsl:otherwise>
    </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
  • moorcroft
    New Member
    • Mar 2008
    • 57

    #2
    Forget about it actually, I've just done it differently using a stored procedure.... :/

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

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

      Comment

      Working...