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]

specifying a target for a hyperlink


hey everybody

hopefully someone will be able to help me solve this problem.  I have 
hyperlinks in my xml document that I am applying xsl to and then opening 
them in a html page.  This is all working find, but I want the new page (as 
a result of clicking the hyperlink to open in a new page.  I can't get the 
target element of the hyperlink working properly.  Currently I have the 
target as an attribute of the hyper;ink.  I don't know if this is correct! 
maybe it would be easier if I contained the information in a separate tag?  
I have included snippets of the xml and xsl below.  the information for 
calling the files is all in an asp file.

Thanks in advance for any help!!
Rach

part of xml file
<ALL>
	<CATEGORY>
		<desc>The Application contains a page to view the status of all releases 
and files to add a new release to the XML file</desc>
		<title>Software Tracking Application</title>
		<url xmlns="_blank"> http://www.vbxml.com/downloads/#software</url>
	</CATEGORY>
</ALL>

part of xsl file
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl";>
<xsl:template match="/">

<HTML>
<BODY>

    <TABLE BORDER = "2" BORDERCOLOR = "00008B" CELLPADDING = "2" CELLSPACING 
= "0">

      <xsl:for-each select="ALL/CATEGORY">

	<TR>
		<TH BGCOLOR = "00008B"><FONT COLOR = "WHITE">Title: </FONT></TH>
        	<TD BGCOLOR = "FFFFFF"><FONT COLOR = "00008B"><xsl:value-of 
select="title"/></FONT></TD>
      	</TR>
	<TR>
		<TH BGCOLOR = "6633FF"><FONT COLOR = "WHITE">Description: </FONT></TH>
        	<TD BGCOLOR = "FFFFFF"><xsl:value-of select="desc"/></TD>
      	</TR>
	<TR>
		<TH BGCOLOR = "9966FF"><FONT COLOR = "WHITE">Url: </FONT></TH>
        	<TD BGCOLOR = "FFFFFF">
			<A>
				<xsl:attribute name = "HREF">
					<xsl:value-of select="url"/>
				</xsl:attribute>
					<xsl:value-of select="url"/>

			</A>


		</TD>
      	</TR>

      </xsl:for-each>

    </TABLE>


</BODY>
</HTML>

</xsl:template>
</xsl:stylesheet>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


 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]