Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Xml.Xsl. XsltException: Cannot find the script or external object that implements prefix 'counter'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
I am using XSLT transformation to display XML file in ASP.NET 2.0 and to pass the value inbetween the page i am using javascript.Any help is appreciated.
My XSLT code is: - <?xml version="1.0" encoding="utf-8"?>
-
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xalan="http://xml.apache.org/xalan"
-
xmlns:lxslt="http://xml.apache.org/xslt" xmlns:counter="ext1" extension-element-prefixes="counter">
-
-
<xsl:output method="html" version="1.0" encoding="utf-8" indent="yes"/>
-
<lxslt:component prefix="counter" functions="count">
-
<lxslt:script lang="Javascript">
-
var i = 1;
-
function count()
-
{
-
i=i+1;
-
return i;
-
}
-
</lxslt:script>
-
</lxslt:component>
-
<xsl:template match="/">
-
<html>
-
<head>
-
-
</head>
-
<body>
-
<xsl:value-of select="counter:count()" />
-
<!--<xsl:apply-templates/>-->
-
</body>
-
</html>
-
</xsl:template>
-
-
-
-
<xsl:template name="tar" match="TARGETCATEGORY">
-
<table border="2" BorderColor="#DEBA84" height="50px" Width="436px" layout="fixed">
-
<tr><td colspan="2">
-
<a href="#{@Name}"><xsl:value-of select="@Name"/></a>
-
</td></tr>
-
</table>
-
<xsl:variable name="node1" select="@Name"></xsl:variable>
-
<xsl:apply-templates/>
-
</xsl:template>
-
-
-
-
-
-
<xsl:template match="SUBCATEGORY">
-
<xsl:value-of select="counter:count()" />
-
-
<table border="2" BorderColor="#DEBA84" Width="436px" layout="fixed">
-
<tr><td colspan="2">
-
<a href="#{@Name}"><xsl:value-of select="@Name"/></a>
-
<a name="Top"></a>
-
</td></tr>
-
</table>
-
</xsl:template>
-
</xsl:stylesheet>
Thanks in advance.
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.42; ASP.NET Version:2.0.507 27.42
3 7886
This article may help: XSLT - On the Client
hi
i am still unable to remove that error.
Actually i want to retrive that return value of javascript funtion in my Template present in the same file.
thanks
This article may help: XSLT - On the Client
I am using XSLT transformation to display XML file in ASP.NET 2.0 and I want to make A table of content similar as in the page of following link given . ....LINK....
My Code of xslt page is : - <?xml version="1.0" encoding="utf-8"?>
-
-
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
-
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
-
-
<xsl:template match="/">
-
<html>
-
-
<body>
-
-
<xsl:apply-templates/>
-
</body>
-
</html>
-
</xsl:template>
-
-
<xsl:template match="TARGETCATEGORY">
-
<table border="2" BorderColor="#DEBA84" height="50px" Width="436px" layout="fixed">
-
<tr><td colspan="2">
-
<a href="#{@Name}"><xsl:value-of select="@Name"/></a>
-
<xsl:variable name="node1">
-
<xsl:value-of select="@Name"/>
-
</xsl:variable>
-
</td></tr>
-
</table>
-
<xsl:apply-templates/>
-
</xsl:template>
-
-
<xsl:template name="sub" match="SUBCATEGORY">
-
<table border="2" BorderColor="#DEBA84" Width="436px" layout="fixed">
-
<tr><td colspan="2">
-
<a href="@Name" onClick="count(i=i+1); return;"><xsl:value-of select="@Name"/></a>
-
<a name="Top"></a>
-
</td></tr>
-
</table>
-
-
</xsl:template>
-
</xsl:stylesheet>
I want to assign a number to each anchor tag dynamically.
Please help me.......!!!!!! !!!!!!!!!!!!!!
thanks in advance.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Alex Ang |
last post by:
I have written the following VBScript program. It is stored into a
file "map_drive.vbs". It successfully mapped to a network drive
\\server1\data.
Dim WshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")
sPwd = inputbox("Enter password")
WshNetwork.MapNetworkDrive "J:", "\\server1\data", false,
"xyz_net\John", sPwd
Msgbox "Drives has been map successful"
|
by: nc |
last post by:
My iterator can find my collection when my Action class calls my jsp
directly, however when my Action class calls an html file that is set
up with IFrames (one of which is loading that same jsp), I get a
servlet error "cannot find collection".
Not usre if my issue is HTML, JSP, WebSphere or ???
Any help is very much appreciated.
HTML file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
by: Gene Goykhman |
last post by:
Hi there. Has anyone experienced an intermittent problem where only functions
from the first included script tag are available to the onLoad event handler?
An example:
<html>
<head>
<script src="library1.js></script>
<script src="library2.js></script>
<script>
function doLoad()
|
by: cjl |
last post by:
Hey all:
Just getting my feet wet with javascript. The following script works
fine in Firefox, but won't run in IE. In fact, I've included this
script as an external file in the <head> of my html file, and the
remainder of the page doesn't load at all in IE. If I remove the
<script>, the page loads in IE.
var images = new Array();
var firstImage = 2;
|
by: Jean-David Beyer |
last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2
V6.1 (with all the FixPacks) on my old machine.
I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat
Enterplise Linux 3 ES, and applied FixPack fp5_mi00069.tar to it. After
creating an instance, starting the database, creating a database, and
entering the table definitions, all of which seems to work OK, I entered a
tiny 8-row table and can do...
| |
by: anson |
last post by:
this code is an example code of TPOP, i type them and can be
compiled...
but when give some input , it getting segment fault ....
i observed that when the build() initial the word table ... it invoke
next_word(in the book its name is new() )and invoke the routine
lookup ...but it cannot lookup anything ....and return NULL.
where goes wrong?
below is the code...
|
by: dragze |
last post by:
Hi,
On one of the pages of my site i use two javascripts, one makes transparency of png's work in IE, and the other embeds a flash player.
Now use one of the scripts it works fine, use both and the transparency script stops working. So for example, use just the png transparency script and it displays the png's correctly in IE, as soon as i add the SWFobject (flash embedding) script the transparency script stops working!!?? :S
Any help...
|
by: =?Utf-8?B?Um9iIFRob21zb24=?= |
last post by:
Hi is there a way in asp.net 1.1 to in code behind query the page size that
is generated, I realise IIS does it as it has that data in the logs, I would
like to capture this data so that I can create a log for performance on our
site that is all held in the database
TIA
|
by: karinmorena |
last post by:
I'm having 4 errors, I'm very new at this and I would appreciate your input. The error I get is:
Week5MortgageGUI.java:151:cannot find symbol
symbol: method allInterest(double,double,double)
Location: class Week5MortgageGUI
Week5MortgageLogic allint = logic.allInterest(amount, term, rate);
Week5MortgageGUI.java:152:cannot find symbol
symbol: method allInterest(double,double,double)
Location: class Week5MortgageGUI
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |