DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Igor Guest

    multiple values in query string


    Hi all,
    I have a problem passing multiple values in query string in XSL.
    When I pass single value it works.
    <TR>
    <TD CLASS="Row" ALIGN="center" VALIGN="TOP">
    <xsl:element name="a">
    <xsl:attribute class="Row" name="href">Redirect.asp?id=<xsl:value-of
    select="id"/></xsl:attribute>
    </xsl:element>
    <xsl:value-of select="Patient_ID"/></TD>

    But I need to pass more then one value in query string. In HTML it would
    look like this: <a href="/actions/redirect.asp?id=1&somecode=CODE"></a>
    But when I try to insert "&" in XSL it breaks. Please advise.
    Igor

  2. #2
    sirshannon Guest

    Re: multiple values in query string


    Use &amp; instead.


    <xsl:element name="a">
    <xsl:attribute class="Row" name="href">Redirect.asp?id=<xsl:value-of
    select="id"/>&amp;somecode=CODE</xsl:attribute>
    </xsl:element>





    "Igor" <irodionov@hotmail.com> wrote:
    >
    >Hi all,
    >I have a problem passing multiple values in query string in XSL.
    >When I pass single value it works.
    > <TR>
    > <TD CLASS="Row" ALIGN="center" VALIGN="TOP">
    > <xsl:element name="a">
    > <xsl:attribute class="Row" name="href">Redirect.asp?id=<xsl:value-of
    >select="id"/></xsl:attribute>
    > </xsl:element>
    > <xsl:value-of select="Patient_ID"/></TD>
    >
    >But I need to pass more then one value in query string. In HTML it would
    >look like this: <a href="/actions/redirect.asp?id=1&somecode=CODE"></a>
    >But when I try to insert "&" in XSL it breaks. Please advise.
    >Igor



  3. #3
    JohnH Guest

    Re: multiple values in query string


    Try using &amp; in place of &


    "Igor" <irodionov@hotmail.com> wrote:
    >
    >Hi all,
    >I have a problem passing multiple values in query string in XSL.
    >When I pass single value it works.
    > <TR>
    > <TD CLASS="Row" ALIGN="center" VALIGN="TOP">
    > <xsl:element name="a">
    > <xsl:attribute class="Row" name="href">Redirect.asp?id=<xsl:value-of
    >select="id"/></xsl:attribute>
    > </xsl:element>
    > <xsl:value-of select="Patient_ID"/></TD>
    >
    >But I need to pass more then one value in query string. In HTML it would
    >look like this: <a href="/actions/redirect.asp?id=1&somecode=CODE"></a>
    >But when I try to insert "&" in XSL it breaks. Please advise.
    >Igor



  4. #4
    XSLMan Guest

    Re: multiple values in query string


    "JohnH" <johnhkc@earthlink.net> wrote:
    >
    >Try using & in place of &
    >
    >
    >"Igor" <irodionov@hotmail.com> wrote:
    >>
    >>Hi all,
    >>I have a problem passing multiple values in query string in XSL.
    >>When I pass single value it works.
    >> <TR>
    >> <TD CLASS="Row" ALIGN="center" VALIGN="TOP">
    >> <xsl:element name="a">
    >> <xsl:attribute class="Row" name="href">Redirect.asp?id=<xsl:value-of
    >>select="id"/></xsl:attribute>
    >> </xsl:element>
    >> <xsl:value-of select="Patient_ID"/></TD>
    >>
    >>But I need to pass more then one value in query string. In HTML it would
    >>look like this: <a href="/actions/redirect.asp?id=1&somecode=CODE"></a>
    >>But when I try to insert "&" in XSL it breaks. Please advise.
    >>Igor

    >

    This link is useful for other characters that cannot be transformed. Ex.
    nbsp = &#160;
    http://msdn.microsoft.com/library/de...s/charset1.asp

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links