xsl-list
[Top] [All Lists]

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

2012-08-27 15:46:43


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>

It’s just a string, isn’t it?

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

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--