[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Excluding unused and duplicate namespace declara
Abel, Thats correct I did mean prefixes. I found a way to do what I need. <xsl:template match="/*"> <xsl:copy copy-namespaces="no"> <xsl:namespace name="xsi" select="'http://www.w3.org/2001/XMLSchema-instance'"/> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> <xsl:template match="@*|node()"> <xsl:copy copy-namespaces="no"> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> This removes all the namespace declarations on all elements and defines the xsi namespace at the top level, meaning it isn't required at each element with an @xsi:nil like it previously was :-) HTH someone else, thanks to MHK (via XSLT 2.0) Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> rpuddehatt@xxxxxxxxxxxx <mailto:rpuddephatt@xxxxxxxxxxxx> t> +44(0)1506 407 110 f> +44(0)1506 407 108 w> www.teleflex.com <http://www.teleflex.com> Abel Braaksma wrote: Ryan Puddephatt wrote:Hi all, -- Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> rpuddehatt@xxxxxxxxxxxx <mailto:rpuddephatt@xxxxxxxxxxxx> t> +44(0)1506 407 110 f> +44(0)1506 407 108 w> www.teleflex.com <http://www.teleflex.com>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|