[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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>
</xsl:for-each> </TABLE>
</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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|