creating an instance of a custom control in xslt?
- From: "Josh Wolf" <joshwolf@xxxxxxxxx>
- Date: 16 Mar 2006 10:19:30 -0800
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?
.
- Follow-Ups:
- Re: creating an instance of a custom control in xslt?
- From: Martin Honnen
- Re: creating an instance of a custom control in xslt?
- Prev by Date: Re: Trouble deserializing XML data from UPS.com
- Next by Date: Re: creating an instance of a custom control in xslt?
- Previous by thread: Re: blank lines screwing up XMLDocument object
- Next by thread: Re: creating an instance of a custom control in xslt?
- Index(es):
Relevant Pages
|