Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • pnr 131 posts 226 karma points
    Mar 31, 2009 @ 11:01
    pnr
    0

    How to initialize a xsl:param on behalf of the querystring

    I am new to XSLT and would like to know how to initialize a xsl:param on behalf of a value in the querystring.

    Example in C#:

    String param = null;

    [code]If(Request.QueryString[“searchString”] != null)
    param = Extensions:GetThreads();
    Else
    param = Extensions:SearchThreads();[/code]


    I have tried something like this but I docent work:

    [code][/code]

  • Stephan Lonntorp 195 posts 212 karma points
    Mar 31, 2009 @ 11:40
    Stephan Lonntorp
    0

    I'd go with a

  • pnr 131 posts 226 karma points
    Mar 31, 2009 @ 11:58
    pnr
    0

    Thanks for your reply!

    I am already using XPathNodeIterator as return type, it is working fine if i intialize the param og variable normaly with a select, but if i use the xsl:chose to intialize i get the following error:

    To use a result tree fragment in a path expression, first convert it to a node-set using the msxsl:node-set() function.

Please Sign in or register to post replies

Write your reply to:

Draft