Hello xsl-list,
I'm using Xslt 2.0 to author some ASP.Net code building
in a library xsl file I have:
<xsl:template name="masthead">
<div id="masthead">
<xsl:element name="asp:xyz">
<xsl:attribute name="Id" select="'lblPageTitle'"/>
<xsl:attribute name="runat" select="'server'"/>
</xsl:element>
<asp:Label Id="lblPageTitle" runat="server" />
<asp:Label Id="lblPageCaption" runat="server" />
<asp:Label Id="lblMessage" runat="server" />
</div><!-- end of masthead -->
when called it gives
<div id="masthead">
<asp:xyz runat="server" xmlns:asp="System.Web.UI.WebControls"
Id="lblPageTitle"></asp:xyz>
<asp:Label runat="server" xmlns:asp="System.Web.UI.WebControls"
Id="lblPageTitle"></asp:Label>
...
</div>
I want to get rid of xmlns:asp="System.Web.UI.WebControls"
In the stylesheet element I have:
I have xmlns:asp="System.Web.UI.WebControls
without this I get error SXXP0003 The prefix asp FOR ELEMENT asp:Label
is not bound
--
Best regards,
Arthur mailto:ArthurM(_at_)seipas(_dot_)com
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--