Question

xasp: name space objects XSL

Asked by: QuinnDester

I have the following code in another application that workes fine
namespace declaration xmlns:xasp="urn:asp-objects">

    <xsl:variable name="offer-url">
      <xsl:value-of select="yahoo:Url" />
</xsl:variable>
 <xsl:variable name="offer-url-encoded">
      <xsl:value-of select="xasp:encodeURL(string(yahoo:Url))" />
</xsl:variable>

I am trying to re use this in another xsl but i am getting this error

Error in XPath expression
Unknown function - Name and number of arguments do not match any function signature in the static context - 'urn:asp-objects:encodeURL'

can anyone help me with this please

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-07-11 at 09:13:57ID24562473
Tags

XSL

,

XSLT

,

XML

Topics

XSL Formatting Objects

,

XPath

,

Extensible Stylesheet Language Transformation (XSLT)

Participating Experts
1
Points
500
Comments
6

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. xmlns attribute in xpath
    I have a simple xml: <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="Test.xsl"?> <Offers xmlns="urn:http://www.merchant.shopmsn.microsoft.com/offerschema.xml"> <Offer> <Model>X0...
  2. XSL getCurrentDate function is not working
    Hi Experts, I am writing an XSL document that inserts the current date and time into the output xml. My xslt is like this: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:m...
  3. JScript in XSL
    hi everyone, i have an xsl stylesheet using JScript. If i use the msxsl parser called from a JavaScript, it works fine. but i'm using saxon called from a JSP with the Transformer method as follows: System.setProperty("javax.xml.transform.TransformerFactory", "...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: GertonePosted on 2009-07-11 at 12:02:51ID: 24831845

this is either an external function,
so you will need a bunch of other things
including making the extension function library accessible
(eg. if java, make sure the jar is on the classpath)

or this is a XSLT2 function,
make sure that yu include the definition then and that your stylesheet is an XSLT2 stylesheet and you have an XSLT2 processor

lots of things that cann go wrong.

I think it would b esmart if you posted both the XSLT that had this working and the XSLT that has this not working

cheers

Geert

 

by: QuinnDesterPosted on 2009-07-11 at 12:08:27ID: 24831868

Thanks Geert

Ill post these in 2 posts as they are on different computers.

Here is the xsl that this function works in.

<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xasp="urn:asp-objects">
<xsl:template match="/">
 
<div id="maincontent">
	<!--variable for parsing links - set in glbMain-->
	<xsl:variable name="url2sub">
		 <xsl:value-of select="xasp:GetRequestVariable('url2','session')" />
	</xsl:variable>
 
	<!--2nd variable for parsing links - set in glbMain-->
	<xsl:variable name="url2sub2">
		 <xsl:value-of select="xasp:GetRequestVariable('url2sub2','session')" />
	</xsl:variable>
 
	<!--variables for back link-->
	<xsl:variable name="back1">
		<xsl:value-of select="substring(//parent-form/url2,$url2sub,18)" />
	</xsl:variable>
	<xsl:variable name="back2">
		<xsl:value-of select="substring(//form/url2,$url2sub,11)" />
	</xsl:variable>
	<xsl:variable name="back3">
		<xsl:value-of select="//form/@id" />
	</xsl:variable>
	<xsl:variable name="backmain">
		<xsl:value-of select="substring(//parent-form/url2,$url2sub)" />
	</xsl:variable>
	<xsl:variable name="backcat">
			<xsl:value-of select="substring(//top-level-form/url2,$url2sub)" />
	</xsl:variable>
	<xsl:variable name="cn">
		<xsl:value-of select="//top-level-form/name" />
	</xsl:variable>
 
 
	<!-- build the crumbtrail -->
	<ul class="crumbtrail">
		<li><a href="index.asp">Home</a>&#160;::</li>
		<li><a href="index.asp?cat={$backcat}&amp;cn={$cn}"><xsl:value-of select="//top-level-form/name" /></a>&#160;::</li>
		<xsl:if test="not(//top-level-form/name=//parent-form/name)">
			<li><a href="index.asp?cat={$backmain}"><xsl:value-of select="//parent-form/name" /></a>&#160;::</li>
		</xsl:if>
		<li><a href="index.asp?cat={$back1}{$back2}{$back3}"><xsl:value-of select="//category/title" />&#160;</a></li>
		<xsl:for-each select="//bread-crumbs/crumb">
			<xsl:variable name="url-value">
				<xsl:value-of select="@url-value" />
			</xsl:variable>
			<xsl:if test="@type='attribute'">
				<li>::&#160;<a href="index.asp?cat={$back1}{$back2}{$back3}/keyword-/dnatrs-{$url-value}"><xsl:value-of select="@display-value" /></a></li>
			</xsl:if>
		</xsl:for-each>
	</ul>
 
	<!-- Main Content -->
	<div id="mainresults">
		<table cellspacing="0" cellpadding="0" border="0">
			<tr>
				<td class="nopadding" colspan="4">
					<h1>Items Found (<xsl:value-of select="//domain/domain-listing/hybrid-items/@total" />)</h1>
				</td>
			</tr>
			<tr>
				<td class="nopadding" colspan="4">
					<!-- get session variable for link-->
					<xsl:variable name="catid">
						<xsl:value-of select="substring(//form/url2,$url2sub)" />
					</xsl:variable>
 
					<!-- get session variable for sort order-->
					<xsl:variable name="so">
						<xsl:value-of select="xasp:GetRequestVariable('so','session')" />
					</xsl:variable>
 
					<!-- build variable for narrowing down the results -->
					<xsl:variable name="narrow">
						<xsl:for-each select="//bread-crumbs/crumb">
							<xsl:if test="@type='attribute'">
								<xsl:value-of select="concat(@url-value,'-')" />
							</xsl:if>
						</xsl:for-each>
					</xsl:variable>
 
					<!-- get session variable for page no-->
					<xsl:variable name="pg">
						<xsl:value-of select="xasp:GetRequestVariable('pg','session')" />
					</xsl:variable>
 
					<!-- get session variable for sortby-->
					<xsl:variable name="sb">
						<xsl:value-of select="xasp:GetRequestVariable('sb','session')" />
					</xsl:variable>
 
					<!-- build sort by links -->
					<div class="sortbar">
						Sort by:
						<xsl:choose>
							<xsl:when test="$sb=0">
								<xsl:choose>
									<xsl:when test="$so=2">
										<a class="selected" href="index.asp?cat={$catid}/dnatrs-{$narrow}&amp;sb=0&amp;so={$so}">Best match
										<img style="vertical-align:top;" border="0" src="sort.gif" /></a>&#160;&#160;
									</xsl:when>
									<xsl:otherwise>
										<a class="selected" href="index.asp?cat={$catid}/dnatrs-{$narrow}&amp;sb=0&amp;so={$so}">Best match
										<img style="vertical-align:top;" border="0" src="sortdesc.gif" /></a>&#160;&#160;
									</xsl:otherwise>
								</xsl:choose>
							</xsl:when>
							<xsl:otherwise>
								<a href="index.asp?cat={$catid}/dnatrs-{$narrow}&amp;sb=0&amp;so={$so}">Best match</a>&#160;&#160;
							</xsl:otherwise>
						</xsl:choose>
 
						<xsl:choose>
							<xsl:when test="$sb=2">
								<xsl:choose>
									<xsl:when test="$so=2">
										<a class="selected" href="index.asp?cat={$catid}/dnatrs-{$narrow}&amp;sb=2&amp;so={$so}">Price
										<img style="vertical-align:top;" border="0" src="sort.gif" /></a>&#160;&#160;
									</xsl:when>
									<xsl:otherwise>
										<a class="selected" href="index.asp?cat={$catid}/dnatrs-{$narrow}&amp;sb=2&amp;so={$so}">Price
										<img style="vertical-align:top;" border="0" src="sortdesc.gif" /></a>&#160;&#160;
									</xsl:otherwise>
								</xsl:choose>
							</xsl:when>
							<xsl:otherwise>
								<a href="index.asp?cat={$catid}/dnatrs-{$narrow}&amp;sb=2&amp;so={$so}">Price</a>&#160;&#160;
							</xsl:otherwise>
						</xsl:choose>
 
						<xsl:choose>
							<xsl:when test="$sb=3">
								<xsl:choose>
									<xsl:when test="$so=2">
										<a class="selected" href="index.asp?cat={$catid}/dnatrs-{$narrow}&amp;sb=3&amp;so={$so}">Store Name
										<img style="vertical-align:top;" border="0" src="sort.gif" /></a>&#160;&#160;
									</xsl:when>
									<xsl:otherwise>
										<a class="selected" href="index.asp?cat={$catid}/dnatrs-{$narrow}&amp;sb=3&amp;so={$so}">Store Name
										<img style="vertical-align:top;" border="0" src="sortdesc.gif" /></a>&#160;&#160;
									</xsl:otherwise>
								</xsl:choose>
							</xsl:when>
							<xsl:otherwise>
								<a href="index.asp?cat={$catid}/dnatrs-{$narrow}&amp;sb=3&amp;so={$so}">Store Name</a>&#160;&#160;
							</xsl:otherwise>
						</xsl:choose>
 
						<xsl:choose>
							<xsl:when test="$sb=5">
								<xsl:choose>
									<xsl:when test="$so=2">
										<a class="selected" href="index.asp?cat={$catid}/dnatrs-{$narrow}&amp;sb=5&amp;so={$so}">Store Rating
										<img style="vertical-align:top;" border="0" src="sort.gif" /></a>&#160;&#160;
									</xsl:when>
									<xsl:otherwise>
										<a class="selected" href="index.asp?cat={$catid}/dnatrs-{$narrow}&amp;sb=5&amp;so={$so}">Store Rating
										<img style="vertical-align:top;" border="0" src="sortdesc.gif" /></a>&#160;&#160;
									</xsl:otherwise>
								</xsl:choose>
							</xsl:when>
							<xsl:otherwise>
								<a href="index.asp?cat={$catid}/dnatrs-{$narrow}&amp;sb=5&amp;so={$so}">Store Rating</a>&#160;&#160;
							</xsl:otherwise>
						</xsl:choose>
					</div>
				</td>
			</tr>
 
			<!-- display the products -->
			<xsl:for-each select="//domain/domain-listing/hybrid-items/store-offer">
				<!--path for product image-->
				<xsl:variable name="offer-image">
					<xsl:value-of select="offer-image" />
				</xsl:variable>
 
				<!--path for store logo-->
				<xsl:variable name="store-logo">
					<xsl:value-of select="store-logo" />
				</xsl:variable>
 
				<!-- path for store-rating-image -->
				<xsl:variable name="store-rating-image">
					<xsl:value-of select="store-rating-image" />
				</xsl:variable>
 
				<!--url for deal-->
				<xsl:variable name="offer-url">
					<xsl:value-of select="offer-url" />
				</xsl:variable>
 
				<!-- url encoded offer-url link so that we can pass it through to a redirect.asp page -->
				<xsl:variable name="offer-url-encoded">
					<xsl:value-of select="xasp:encodeURL(string(offer-url))" />
				</xsl:variable>
 
				<tr>
					<td>
						<img src="{$offer-image}" />
					</td>
					<td valign="top">
						<strong><a href="redirect.asp?target={$offer-url-encoded}" target="_blank"><xsl:value-of select="offer-name" /></a></strong><br/><br/>
						<xsl:value-of select="offer-description" /><br/><br/>
						<strong>In stock:</strong>&#160;<xsl:value-of select="in-stock" /><br/>
						<xsl:if test="not(string-length(stock-description)=0)">
							<strong>Availability:</strong>&#160;<xsl:value-of select="stock-description" /><br/><br/>
						</xsl:if>
					</td>
					<td width="20%" align="center">
						<img src="{$store-logo}" /><br/><br/>
						<xsl:choose>
							<xsl:when test="(string-length($store-rating-image)=0)">
								Not Reviewed
							</xsl:when>
							<xsl:otherwise>
								<img src="{$store-rating-image}" /><br/><br/>
							</xsl:otherwise>
						</xsl:choose>
					</td>
					<td width="20%" align="center" valign="center">
						<br/>&#163;<xsl:value-of select="format-number(offer-price,'###,##0.00')" /><br/>
						P&amp;P <xsl:value-of select="shipping" /><br/>
						<strong>&#163;
						<xsl:choose>
							<xsl:when test="string(number(total-price))='NaN'">
								<xsl:value-of select="total-price" />
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="format-number(total-price,'###,##0.00')" />
							</xsl:otherwise>
						</xsl:choose>
						</strong><br/>
						<a href="redirect.asp?target={$offer-url-encoded}" target="_blank"><img style="margin:8px 0px;" src="buynow2.gif" border="0" /></a><br/>
						<a href="redirect.asp?target={$offer-url-encoded}" target="_blank"><xsl:value-of select="store-name" /></a><br/><br/>
					</td>
				</tr>
			</xsl:for-each>
		</table>
	</div>
 
	<!-- show "narrow results by" column -->
	<xsl:choose>
		<xsl:when test="//attribute-list/attribute">
			<div id="narrowresults">
				<h1>Narrow results by</h1>
				<xsl:for-each select="//attribute-list/attribute">
					<h2><xsl:value-of select="@name" /></h2>
					<div class="narrowresultscontent">
						<xsl:for-each select="attr-value">
							<xsl:variable name="filter">
								<xsl:value-of select="substring(url2,$url2sub2)" />
							</xsl:variable>
							<a href="index.asp?cat={$filter}"><xsl:value-of select="name" /></a>&#160;<span class="smallcounter">(<xsl:value-of select="count" />)</span><br/>
						</xsl:for-each><br/>
					</div>
				</xsl:for-each>
			</div>
		</xsl:when>
		<xsl:otherwise>
			<div id="narrowresults">
				<h1>Narrow results by</h1>
				<xsl:variable name="results">
					<xsl:value-of select="//domain/domain-listing/hybrid-items/@total" />
				</xsl:variable>
 
				<xsl:choose>
					<xsl:when test="$results=1">
						<div class="narrowresultscontent"><strong>There is <xsl:value-of select="$results" /> item that
						matched your selection.</strong> There are no additional ways to narrow down these results.</div>
					</xsl:when>
					<xsl:otherwise>
						<div class="narrowresultscontent"><strong>There are <xsl:value-of select="$results" /> items that
						matched your selection.</strong> There are no additional ways to narrow down these results.</div>
					</xsl:otherwise>
				</xsl:choose>
			</div>
		</xsl:otherwise>
	</xsl:choose>
</div>
</xsl:template>
</xsl:stylesheet>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:

Select allOpen in new window

 

by: QuinnDesterPosted on 2009-07-11 at 12:10:13ID: 24831875

here is the one that doesnt work,

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
    xmlns:user="urn:comparionsplus-com:xslt"
    xmlns:yahoo="urn:yahoo:prods"
    xmlns:xasp="urn:asp-objects">
    <xsl:output method="html"/>
    <xsl:template match="/">
        <html>
            <body>
                <xsl:apply-templates select="yahoo:ProductSearch/yahoo:Products"/>
            </body>
        </html>
    </xsl:template>
    <xsl:template match="yahoo:ProductSearch/yahoo:Products">
 
            
        <xsl:apply-templates select="yahoo:Product/yahoo:Offer"/>
    </xsl:template>
    	<xsl:variable name="offer-url">
					<xsl:value-of select="yahoo:Url" />
				</xsl:variable>
    				<xsl:variable name="offer-url-encoded">
					<xsl:value-of select="xasp:encodeURL(string(yahoo:Url))" />
				</xsl:variable>
 
    <xsl:template match="yahoo:Products/yahoo:Product/yahoo:Offer">
<div class="clear"></div>
<div class="products">
      <table align="center" class="style2" bgcolor="ffffff" cellpadding="3" border="1">
        <tr>
            <td align="center" class="style23" rowspan="3">
                     <a>
      
       <xsl:attribute name="href">redirect.aspx?target=<xsl:value-of select="$offer-url-encoded"/>
       </xsl:attribute>
       
       <img>
       <xsl:attribute name="src" >
       
       <xsl:value-of select="yahoo:ListImage/yahoo:Url"/>
       </xsl:attribute> 
       <xsl:attribute name="border"> <xsl:value-of select="0"/>
       </xsl:attribute>
       <xsl:attribute name="alt">
       <xsl:value-of select="yahoo:ProductName"/>
       </xsl:attribute>
       </img>
       <input><xsl:attribute name="name"><xsl:text>productLink</xsl:text></xsl:attribute><xsl:attribute name="type"><xsl:text>hidden</xsl:text></xsl:attribute><xsl:attribute name="value"><xsl:value-of select="$offer-url-encoded"/></xsl:attribute></input>
       </a></td>
            <td class="style27" colspan="3">
                <xsl:value-of select="yahoo:ProductName"/></td>
            <td class="style19">
                Price</td>
            <td align="center" class="style9">
                 <xsl:value-of select="yahoo:Price"/> GBP</td>
        </tr>
        <tr>
            <td colspan="3" rowspan="2">
 
              <xsl:value-of select="translate(normalize-space(yahoo:Summary), '#', '')"/>
            </td>
            <td class="style19">
                Delivery</td>
            <td align="center" class="style9">
                <xsl:value-of select="yahoo:DeliveryCost"/> GBP</td>
        </tr>
        <tr>
            <td align="center" class="style10" colspan="2">
               
                <xsl:value-of select="yahoo:Availability"/></td>
        </tr>
        <tr>
            <td class="style23">
                Category</td>
            <td align="center" colspan="2">
                <a><xsl:attribute name="href">home.aspx?catid=<xsl:value-of select="yahoo:Category/@id"/>&amp;title=<xsl:value-of select="translate(normalize-space(yahoo:Category/yahoo:Name), ' ', '_')"/></xsl:attribute><xsl:value-of select="yahoo:Category/yahoo:Name"/></a></td>
            <td align="center" colspan="2"> 
                <xsl:value-of select="yahoo:Merchant/yahoo:Name"/>
 </td>
            <td align="center" class="style10" colspan="2">
           <div> 
           <a>
 
  <xsl:attribute name="href"><xsl:text>redirect.aspx</xsl:text></xsl:attribute>Buy Now
  
    <input>
  <xsl:attribute name="id"><xsl:text>productLink</xsl:text></xsl:attribute><xsl:attribute name="name"><xsl:text>productLink</xsl:text></xsl:attribute><xsl:attribute name="method"><xsl:text>post</xsl:text></xsl:attribute><xsl:attribute name="type"><xsl:text>hidden</xsl:text></xsl:attribute><xsl:attribute name="runat"><xsl:text>server</xsl:text></xsl:attribute><xsl:attribute name="value"><xsl:value-of select="yahoo:Url"/></xsl:attribute>
  </input>
  </a>
 
  
</div>
</td>
        </tr>
    </table>
</div>
         <br />
    </xsl:template>
    
 
</xsl:stylesheet>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:

Select allOpen in new window

 

by: GertonePosted on 2009-07-11 at 12:44:10ID: 24831986

yep, that is likely an extension library
what processor are you using on the computer that does work?
it is hard for me to tell how the extension library is configured.
There likely is a jar on the classpath that is included
or a .dll that is connected one way or another.
You have to make sure that you copy and configure that as wel

 

by: GertonePosted on 2009-07-11 at 12:45:55ID: 24831992

I found a reference to the library
here is how to configure it
http://www.codeproject.com/KB/asp/aspobjects_in_xsl.aspx?display=PrintAll

 

by: QuinnDesterPosted on 2009-07-11 at 16:32:23ID: 24832595

Gertone, Could  i trouble you to look at this one.

In an effort to over come the problems i was having using the asp namespace i tried to create an extension object to url encode the urls.

this seems to almost right, but i cant work out where its going wrong. your help would be much appreciated.
thank You

http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_24562199.html

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...