[Home] [By Thread] [By Date] [Recent Entries]
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>
|

Cart



