Topic: XSLT Open window (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=24753" title="Pages that link to Topic: XSLT Open window (Page 1 of 1)" rel="nofollow" >Topic: XSLT Open window <span class="small">(Page 1 of 1)</span>\

 
harley
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Jan 2005

posted posted 01-21-2005 03:20

I have a XSLT document with no javascript. I am trying to open the following in a new window. Can anyone help or give me some direction? Tks in advance !

<xsl:choose>
<xsl:when test="//dbo.Property/@VTURL">
<a>
<xsl:attribute name="href">
<xsl:value-of select="//dbo.Property/@VTURL"/>
</xsl:attribute>
<img border="0" src="../images/vt15.gif"/>&#32; &#32; Virtual Tour
</a>
</xsl:when>
</xsl:choose>

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 01-21-2005 03:47

Hello, and welcome in the Asylum.

If the the DOCTYPE of the final output does include the target attribute for the A tags, you could simply do :

code:
<xsl:choose>
<xsl:when test="//dbo.Property/@VTURL">
<a target="_blank">
<xsl:attribute name="href">
<xsl:value-of select="//dbo.Property/@VTURL"/>
</xsl:attribute>
<img border="0" src="../images/vt15.gif"/>&#32; &#32; Virtual Tour
</a>
</xsl:when>
</xsl:choose>

Hope that helps.

harley
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jan 2005

posted posted 01-21-2005 04:28

Poi, thanks so much for the quick response! It works great!



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu