473,545 Members | 2,788 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using XMLCompiled Transform with asp.net server side controls

2 New Member
Hi,
I have created an xsl document containing html client side controls and when I used my XSLCompileTrans form class it successfully created an xhtml page.

I then changed the client side controls to asp.net2 server side controls and changed the xsl document accordingly. However now my XSLCompileTrans form class rejects the style sheet saying -

"System.Xml.Xsl .XslLoadExcepti on was caught
LineNumber=56
LinePosition=20
Message="XSLT compile error.""

It does not like the server side control

I have put my xsl code below and I would be really grateful if someone could help me.

Many thanks in advance,

Polly Anna

Expand|Select|Wrap|Line Numbers
  1. <form id="frmFoo" runat="server" action ="SelectApplicant.aspx" method ="post" target ="_self" >
  2.  
  3. ******* line 56 is the one below ********
  4.  
  5.                   <asp:ListBox ID="lstApplications" runat="server" CssClass="TextArea" Style="z-index: 103">
  6.  
  7.                     <xsl:for-each select="NewDataSet/Table/AdviceId">
  8.  
  9.                       <asp:ListItem>
  10.                         <xsl:attribute name="value">
  11.                           <xsl:value-of select="."/>
  12.                         </xsl:attribute>
  13.                         <xsl:value-of select="."/>
  14.                         -  <xsl:value-of select="../AdviceDate"/>
  15.                         -  <xsl:value-of select="../Advisor_Name"/>
  16.                         -  <xsl:value-of select="../Advisor_Add1"/>
  17.                         -  <xsl:value-of select="../AppId"/>
  18.                         -  <xsl:value-of select="../Applicant_Name"/>
  19.  
  20.                       </asp:ListItem>
  21.                     </xsl:for-each>
  22.                   </asp:ListBox>
  23.  
  24. </form>
Aug 4 '06 #1
0 1456

Sign in to post your reply or Sign up for a free account.

Similar topics

4
1967
by: Pat | last post by:
Is anyone using XML instead of HTML for pages of content? If so is there a public site to browse? Can someone point me to a discussion of the pros and cons of doing this? I am trying to get a handle on how close XML is to replacing HTML for browsing specifically (I am aware of its other benefits.) Also I do understand that XML can be...
5
7618
by: Fred | last post by:
Not much expertise on XSLT and trying to understand it's uses when creating apps in VS.NET? If I wanted flexibility on the UI (View aspect of M.V.C.): - How does it compare with creating business components that can be consumed by WebForms, WinForms, mobile devices, etc? Is it even fair to compare the such technologies? - How about for...
0
1268
by: KathyB | last post by:
Hi, I would be grateful for any guidance in how to achieve the following. I have an aspx page in which I transform an xmlDocument instance to the browser...so (as I understand it) that page contains the xmlDocument AND the transformed instance client-side in the browser. The main xml element used in this doc is a <step> element. For each...
4
2356
by: | last post by:
Hello Guys, I am using the validation controls to validate my data. But the problem is "The page is still being posted to server". I want to get rid of the round trips to server. Are there any get arounds for this problem apart from the traditional JavaScript?
7
6972
by: Lau Lei Cheong | last post by:
Hello, I'm using javascript's insertAdjacentHtml() to insert images to the webform at runtime. This runs fine(image successfully displayed at the browser) but when I tried to access the control's src using FindControl() function in the code-behind, it seems that the control doesn't even exist. I know that I can add controls on the...
5
3715
by: Dennis Fazekas | last post by:
Greetings, I am creating a web form which will all the user to add an unlimited number of email addresses. Basically I have 3 buttons, "Add Another Email", "-" to remove, and a "Save" button. When the user clicks the "Add another email" it will call a client side JavaScript function, add_email, which will dynamically add a new set of...
4
1156
by: dawnerd | last post by:
Hi, I have a question that a friend was asking me a few minutes ago. Is it better to transform XSL on the client side, or let the server handle it? Or both, ensuring that everyone can view the site correctly.
13
9614
by: Toby Newman | last post by:
I started learning XML on Monday. I have an XML file and have written an XSL file to render it to HTML for formatted viewing in a browser. I'd like to create a second alternative view of the same data. I am confused how: If the following line, which dictates which XSL file should be used to transform my XML document for me, is found *in...
9
2491
by: WT | last post by:
Hello, I have code created with .net 1.0 and migrated to 3.5. Form 2.0 the XslTransform class is obsolete and the vs2008 compiler generates warnings that these classes are absolete suggesting to use XslCompiledTransform. But all this was rendered using an Xml control and I can't find a way to relate this control to an XslCompiledTransform...
0
7499
marktang
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...
0
7432
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...
0
7943
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7456
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7786
tracyyun
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...
1
5359
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5076
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...
0
3490
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...
1
1044
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.