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

RE: Problem with msxsl:script

Subject: RE: Problem with msxsl:script
From: "Frenkel, Garry J." <garry.j.frenkel@xxxxxxx>
Date: Tue, 4 Sep 2001 11:27:33 -0400
msxsl script url
Thanks - It worked perfectly.  I was originally trying to do something along
those lines but instead of using the  
{$bookList/state_1} syntax, I was attempting to use xsl:value-of within the
quotes of the href.
-----Original Message-----
From: Julian Reschke [mailto:julian.reschke@xxxxxx]
Sent: Tuesday, September 04, 2001 10:10 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Problem with msxsl:script


You would need disable-output-escaping for this, but the simpler, faster and
more portable solution would be to generate the URL using the XSLT string
functions.

Something like:

<a
href='http://s1cf013/irg_dev/d_debug?xxx=&quot;{$bookList/state_1}'>...</a>

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Frenkel,
> Garry J.
> Sent: Tuesday, September 04, 2001 3:56 PM
> To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
> Subject:  Problem with msxsl:script
>
>
> I am attemting to dynamically generate a URL with a query string that is
> dependent on a value passed from an XML node by using the following code:
>
>
> <msxsl:script language="JScript" implements-prefix="user">
>     function getURL(nodelistBook) {
> 			var mURL =&quot;&lt;a href = &quot;  ;
> 			var mURL =  mURL + &quot;
> http:\\\\s1cf013\\irg_dev\\d_debug?xxx=&quot;;
> 			var curNode = nodelistBook.item(0);
> 			var state_1 =
> curNode.selectSingleNode('state_1').text;
> 			var mURL = mURL+ state_1 + ">"  ;
> 			var mURL = mURL+ state_1 ;
> 			var mURL = mURL+ &quot;&lt;/a&gt;&quot;;
>
> 			return mURL;
>     }
>   </msxsl:script>
>
> My return value as displayed by the browser is as follows:
>
> <a href = http:\\s1cf013\irg_dev\d_debug?xxx=01>01</a>
>
> which may look great but this is exactly what is diplayed, not the
> hyperlink, but this code as is.  The browser is doing as it is supposed to
> since it is receiving the output of the function as:  &lt;a href =
> http:\\s1cf013\irg_dev\d_debug?xxx=01&gt;01&lt;/a&gt;
>
> I have tried all different ways of expressing the less thans and greater
> thans and quotes but I can't seem to end up with code that will
> actually be
> expressed as text representing a hyperlink.
> Any takers?
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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

 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.