Re: [xsl] URL query as table data

Subject: Re: [xsl] URL query as table data
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 20 Feb 2002 17:51:13 -0500
Harry,

At 12:38 AM 2/17/2002, Mike wrote:
Harry J. Foxwell wrote:
> <xsl:template match="Term">
> <td>
> <A HREF="http://lookuphost.com/bin/lookup.cgi?term=
> <xsl:apply-templates/>">
> <xsl:apply-templates/></A>
> </td>

...


This is what you're trying to do:

  <A>
    <xsl:attribute name="HREF">
      <xsl:text>http://lookuphost.com/bin/lookup.cgi?term=</xsl:text>
      <xsl:apply-templates/>
    </xsl:attribute>
    <xsl:apply-templates/>
  </A>

Or alternatively:


<xsl:variable name="term">
  <xsl:apply-templates/>
</xsl:variable>
<a href="http://lookuphost.com/bin/lookup.cgi?term={$term}";>
  <xsl:apply-templates/> <!-- or just <xsl:copy-of select="$term"/> -->
</a>

Cheers,
Wendell

   - Mike
____________________________________________________________________________
  mike j. brown, fourthought.com  |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  personal: http://hyperreal.org/~mike/

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


======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


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



Current Thread