HTML output method: output a & character?

Subject: HTML output method: output a & character?
From: Kai.Grossjohann@xxxxxxxxxxxxxxxxxx (Kai Großjohann)
Date: 25 Oct 1999 13:08:02 +0200
I would like to convert XML of the following form:

    <search>foo</search>

into HTML output of the following form:

    <a href="/script.cgi?action=search&term=foo">...</a>

I've got a problem with the "&" character.  The best I was able to do
is to produce "&amp;", via the following XSL:

    <a>
      <xsl:attribute name="href">
        /script.cgi?action=search&amp;term=<xsl:value-of select="search"/>
      </xsl:attribute>
      ...
    </a>

Is there a way to get the "&" character into that URL?

I'm using James Clark's XT distribution as of 1999-10-08.

tia,
kai
-- 
Life is hard and then you die.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread