Re: [xsl] How to give an attribute a QName value, with the appropriate prefix?

Subject: Re: [xsl] How to give an attribute a QName value, with the appropriate prefix?
From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@xxxxxxxxx>
Date: Mon, 27 Aug 2012 22:46:16 +0200
On 2012-08-27 22:37, Costello, Roger L. wrote:
     <xsl:template match="xs:attribute">
         <xsl:copy>
             <xsl:copy-of select="@*" />
             <xsl:attribute name="type"><xsl:value-of select="QName('http://www.w3.org/2001/XMLSchema', 'anySimpleType')" /></xsl:attribute>

Its just a string, isnt it?


<xsl:attribute name="type" select="'xs:anySimpleType'" />

             <xsl:sequence select="node()" />
         </xsl:copy>
     </xsl:template>

Current Thread