XSLTGeneral questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
However when I try to generate the <asp: tag from my template I get a namespace error. Has anyone been able to generate the text for the asp.Net controls using an xsl template?
You give us only an opportunity to guess :) Please send your XSLT code and we'll try to help you. Probably there is a problem with namespace declarations.
Maybe you need to encode the : in the <asp:...> tag so the XSLT transformation doesn't get confused and assume that it needs to match that to some namespace.
Peter
------------------------------------------------------
Work smarter, not harder.
The difficulty arises because asp.net pages are not xml. They don't declare the asp prefix/namespace uri. The asp.net processor has this hardcoded into it but this spoils it when you try to create pages via xslt. I remember seeing a solution on another xml list and I will try to find a link to that for you.