J
Josh Wolf
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?
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?