473,378 Members | 1,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

creating an instance of a custom control in xslt?

I feel like this question has been half-answered on here for me a few
times, but I'm looking for a more complete solution.

I've got the results of a query being returned in XML and processed
with XSLT via XmlDocument and XslTransform in C#. It outputs a web
form. My problem is that I've got a Custom Control I'd like to place in
the middle of the form, with some parameter information fed from the
XML.

I've gone the path of forcing a parse of the output via
Page.ParseControl(), but my problem is that the Control needs its own
prefix. So, instead of <xsl:tag> or <asp:tag>, I've got <ucc:tag>,
which throws a parse error because the "ucc" namespace is undefined in
the parser.

I think the answer lies with XmlNamespaceManager, but I can't figure
out how to use that with XslTransform. Can someone point me in the
right direction? Is there an easier (X)path?

Mar 16 '06 #1
1 1308


Josh Wolf wrote:

I've gone the path of forcing a parse of the output via
Page.ParseControl(), but my problem is that the Control needs its own
prefix. So, instead of <xsl:tag> or <asp:tag>, I've got <ucc:tag>,
which throws a parse error because the "ucc" namespace is undefined in
the parser.


If that method Page.ParseControl gives you an error when parsing the
result of an XSLT transformation then I think an ASP.NET group is a
better place to ask.
If you get any error during/while running the XSLT transformation then
we can help if you show us the XSLT stylesheet and tell us what code you
are using that causes the error.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Mar 16 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: owen | last post by:
Generally speaking, what does it mean when I see a "button" with red text showing this message instead of the control I've dragged onto the web form in Design View.? (But the page works fine at...
4
by: Moogy | last post by:
I'm pulling my hair out here. First, I'm new to XML, so that doesn't help, but none of this makes any sense to me. All I'm trying to do is take a simple source XML file and translate it with an...
15
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use...
8
by: Ravi Ambros Wallau | last post by:
Hey guys: What can I do when an "Error Creating Control" is displayed on the form (instead of the control), and a tooltip indicating the error never is displayed? Is there some log, some hidden...
0
by: Josh Wolf | last post by:
I feel like this question has been half-answered on here for me a few times, but I'm looking for a more complete solution. I've got the results of a query being returned in XML and processed with...
1
by: WebMatrix | last post by:
Hi, I started a new web application which so far has several grdiviews displaying data. I find myself reimplementing the same logic (copy/pasting really) in grid's event ItemDataBound and...
5
by: Pucca | last post by:
I'm gettting this error at "Application.Run" in the code below. The error message also says "Out of Memory". How can I find out more about what's causing this error? It just breaks there with no...
26
by: nyathancha | last post by:
Hi, How Do I create an instance of a derived class from an instance of a base class, essentially wrapping up an existing base class with some additional functionality. The reason I need this is...
1
by: Abdo Haji-Ali | last post by:
Previously I used to create user controls if I wanted to use a specific set of controls in multiple pages, however I want to deploy my control in other applications so I thought of creating custom...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.