[Home] [By Thread] [By Date] [Recent Entries]
It depends rather whether the transformation is schema-aware.
If it's a schema-aware transformation, and <fault> is annotated as an xs:QName, you want: <xsl:template match="fault">
<xsl:copy>
<xsl:variable name="q" as="xs:QName" select="." />
<xsl:attribute name="{local-name-from-QName(q)}" namespace="namespace-uri-from-QName(q)">blah</xsl:attribute>
<xsl:value-of select="." />
</xsl:copy>
</xsl:template>If it's not schema-aware, then you want: <xsl:template match="fault">
<xsl:copy>
<xsl:variable name="q" as="xs:QName" select="resolve-QName(., .)" />
<xsl:attribute name="{local-name-from-QName(q)}" namespace="namespace-uri-from-QName(q)">blah</xsl:attribute>
<xsl:value-of select="." />
</xsl:copy>
</xsl:template>Michael Kay Saxonica On 01/08/2012 16:24, Costello, Roger L. wrote: Hi Folks,
|

Cart



