Endbringer
Technical User
I've got an XML file that contains links to some DWF files. I've created a XSL to display it in IE. My problem is that I want the links to open in a new window. Sounds pretty easy, except that when it opens up the new window, it replaces the orginal window with "[object]" typed in it. The whole point of openning the new window was to keep the links open. Here's a sample of my XML and XSL.
-----XML-------
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="../../ProjectSheetList.xsl"?>
<plan>
<planName>Keystone Little League Project</planName>
<sheetList>
<sheet name="1" tif="001" desc="Title Sheet"/>
<sheet name="2" tif="002" desc="Abbreviations, Legend and General Notes"/>
<sheet name="3" tif="003" desc="Site Dimensional Layout"/>
</sheetList>
</plan>
------------XSL----------------
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl=" version="1.0">
<xsl
utput method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<html>
<head>
</head>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="plan">
<h2>
<xsl:value-of select="planName"/>
</h2>
<table border="0">
<xsl:apply-templates select="sheetList"/>
</table>
</xsl:template>
<xsl:template match="sheetList">
<tr bgcolor="#F0F1F0">
<td/>
<td style="font-weight: bold">Sheet Number and Sheet Name</td>
<td style="font-weight: bold">TIF Number</td>
</tr>
<xsl:apply-templates select="sheet"/>
</xsl:template>
<xsl:template match="sheet">
<xsl:variable name="cell-color">
<xsl:choose>
<xsl:when test="position() mod 2 = 0">#FFFFFF</xsl:when>
<xsl
therwise>#C6DBF7</xsl
therwise>
</xsl:choose>
</xsl:variable>
<tr bgcolor="{$cell-color}">
<td align="right">
<a>
<xsl:attribute name="href">
javascript
pen("<xsl:value-of select="./@name"/>.dwf","dwfWin","toolbar='0',location='no',menubar='0'"
</xsl:attribute>
<xsl:value-of select="./@name"/>
</a>
</td>
<td>
<a>
<xsl:attribute name="href">
javascript
pen("<xsl:value-of select="./@name"/>.dwf","dwfWin","toolbar='0',location='no',menubar='0'"
</xsl:attribute>
<xsl:value-of select="./@desc"/>
</a>
</td>
<td style="width: 20pt;align: center">
<xsl:value-of select="./@tif"/>
</td>
</tr>
</xsl:template>
</xsl:stylesheet>
-----------------------------
Thanks in advance.
-----XML-------
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="../../ProjectSheetList.xsl"?>
<plan>
<planName>Keystone Little League Project</planName>
<sheetList>
<sheet name="1" tif="001" desc="Title Sheet"/>
<sheet name="2" tif="002" desc="Abbreviations, Legend and General Notes"/>
<sheet name="3" tif="003" desc="Site Dimensional Layout"/>
</sheetList>
</plan>
------------XSL----------------
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl=" version="1.0">
<xsl
<xsl:template match="/">
<html>
<head>
</head>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="plan">
<h2>
<xsl:value-of select="planName"/>
</h2>
<table border="0">
<xsl:apply-templates select="sheetList"/>
</table>
</xsl:template>
<xsl:template match="sheetList">
<tr bgcolor="#F0F1F0">
<td/>
<td style="font-weight: bold">Sheet Number and Sheet Name</td>
<td style="font-weight: bold">TIF Number</td>
</tr>
<xsl:apply-templates select="sheet"/>
</xsl:template>
<xsl:template match="sheet">
<xsl:variable name="cell-color">
<xsl:choose>
<xsl:when test="position() mod 2 = 0">#FFFFFF</xsl:when>
<xsl
</xsl:choose>
</xsl:variable>
<tr bgcolor="{$cell-color}">
<td align="right">
<a>
<xsl:attribute name="href">
javascript
</xsl:attribute>
<xsl:value-of select="./@name"/>
</a>
</td>
<td>
<a>
<xsl:attribute name="href">
javascript
</xsl:attribute>
<xsl:value-of select="./@desc"/>
</a>
</td>
<td style="width: 20pt;align: center">
<xsl:value-of select="./@tif"/>
</td>
</tr>
</xsl:template>
</xsl:stylesheet>
-----------------------------
Thanks in advance.