multiple values in query string


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: multiple values in query string

  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

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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center