|
Subject: [xsl] How do you remove namespace? From: Arthur Maloney <ArthurM@xxxxxxxxxx> Date: Mon, 14 Aug 2006 16:55:44 +0100 |
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@xxxxxxxxxx
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] XSLT-RTF Hide Element, McDonald, Shaun | Thread | RE: [xsl] How do you remove namespa, Michael Kay |
| Re: [xsl] converting empty nodes to, Steve | Date | Re: [xsl] Selecting the first node , Wendell Piez |
| Month |