By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,192 Members | 1,276 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,192 IT Pros & Developers. It's quick & easy.

creating an instance of a custom control in xslt?

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a


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 discussion thread is closed

Replies have been disabled for this discussion.