[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: using the href attribute
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Fri, 13 Jun 2003 16:29:05 -0400
[ Kathy Burke]

> I apply this template and my html page works to open up the 
> link -- but in
> the same browser window.
> 
> 	<xsl:template match="link">
> 	<a href="{@url}"><xsl:apply-templates/></a>
> 	</xsl:template>
> 
> Since I need the link to open into a new browser window...I 
> tried to do
> that, but
> I'm just not getting how the first way works and why this 
> next one doesn't:
> 

The target attribute determines where a link opens -

<a href='http://www.example.com/docs' 
    target='show_docs'>Docs</a>

If a window or frame named "show_docs" is already open, the linked url
will open in it, otherwise a new window with that name will be opened.

Try to get your html working BEFORE worrying about your xslt transforms.

Cheers,

Tom P

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


Current Thread
  • RE: xsl href url in xml, (continued)
        • dsk - Sat, 14 Jun 2003 16:26:09 -0400 (EDT)
        • Conal Tuohy - Sat, 14 Jun 2003 19:20:05 -0400 (EDT)
        • dsk - Sun, 15 Jun 2003 00:33:42 -0400 (EDT)
        • G. Ken Holman - Sun, 15 Jun 2003 09:03:31 -0400 (EDT)
    • Passin, Tom - Fri, 13 Jun 2003 16:29:41 -0400 (EDT) <=
    • Kathy Burke - Sun, 15 Jun 2003 10:01:46 -0400 (EDT)
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member