Just write the HTML-Tag for the ASP.NET Control into the XSLT:
true true Priority
That’s what the following code does:
Protected ctlXML As PlaceHolderDim oXMLDoc As System.Xml.XPath.XPathDocumentDim oXMLTrans As System.Xml.Xsl.XslTransformDim oSW As System.IO.StringWriterDim sHTML As StringDim oCtl As ControloXMLDoc = New System.Xml.XPath.XPathDocument("...")oXMLTrans = New System.Xml.Xsl.XslTransform'load the StylesheetoXMLTrans.Load(Server.MapPath("..."))'Transform XML to HTMLoSW = New System.IO.StringWriteroXMLTrans.Transform(oXMLDoc, Nothing, oSW, Nothing)sHTML = oSW.ToStringIf Not sHTML Is Nothing Then 'Remove the Definition for the "namespace" ASP, which has been created sHTML = sHTML.Replace("xmlns:asp=""remove""", "")End IfoCtl = Page.ParseControl(sHTML)ctlXML.Controls.Clear()ctlXML.Controls.Add(oCtl)