This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: URL query as table data
- From: Wendell Piez <wapiez at mulberrytech dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 20 Feb 2002 17:51:13 -0500
- Subject: Re: [xsl] URL query as table data
- References: <Pine.GSO.4.33.0202162218480.7909-100000@cs1>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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@mulberrytech.com
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