[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

How do you remove namespace?

Subject: How do you remove namespace?
From: Arthur Maloney <ArthurM@xxxxxxxxxx>
Date: Mon, 14 Aug 2006 16:55:44 +0100
remove namespace
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.