[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSL and Javascript to set new window parameters

Subject: XSL and Javascript to set new window parameters
From: "Phil Davies" <phildavies@xxxxxxxxxxxxxxxxxx>
Date: Wed, 8 Nov 2000 18:07:37 -0000
phil davies
I have an XSL sheet that constructs a simple table with links created from a
set of ID's taken from the XML.
Creating the link is straighforward but I want to ensure that the link is
opened in a new window with specific parameters.  I know how to do this in
Javascript using the code

onClick="window.open('default.html','new','toolbars=no,scrollbars=no')

but do not know how to integrate this into XSL, particularly as I am using a
referenced XML value and CDATA in the HREF link.


        <xsl:element name="a">
            <xsl:attribute name = "href">document.asp?id=<xsl:value-of
select="@id"/><![CDATA[&level=1&prodId=news]]>
      	</xsl:attribute>
		<xsl:attribute name = "target">target="_blank"
            </xsl:attribute>
		<xsl:attribute name = "title">title="Title"
	      </xsl:attribute>
        <xsl:value-of/>
        </xsl:element>


I tried to use the following code but had no result, it was ignored.

		   <xsl:attribute name =
"onClick">onClick="window.open('document.asp?id=<xsl:value-of
select="@id"/><![CDATA[&level=1&prodId=news]]>','_blank','toolbars=no,scroll
bars=no')"
           </xsl:attribute>

Any help appreciated

Phil Davies


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.