How do I specify a match for an element whose type attribute is in xsd: namespace? For example:
<enitityID maxOccurs="0" minOccurs="0" type="xsd:string"/>
I tried
<xsl:template match="*[namespace-uri(@type)= 'http://www.w3.org/2001/XMLSchema']">
...
</xsl:template>
but it doesn’t seem to work. Thanks.
The
xsd:in that attribute value isn’t a namespace declaration; it’s just part of the value of the attribute; you just need@type = 'xsd:string'to match it.EDIT: As per comments, to match anything beginning
xsd:, you can just usesubstring-before(@type,':') = 'xsd'orsubstring(@type,1,4) = 'xsd:'