This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: URL query as table data


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]