RE: DOCTYPE causes appearance of unwanted attributes2004-04-06 14:23:15Eliot Kimber wrote:You can always write your own DTD-specific attribute filter, e.g.: <xsl:template match="@*"> <xsl:choose> <xsl:when test="self::attname_1 and string(.) = 'default_value'"/>I wasn't thinking clearly--the above test is not valid syntax as you can't use self:: for attributes. A correct solution is: But a better solution (which always suggests itself when you see xsl:choose immediately within xsl:template) is <xsl:template match="@attname_1[.='default_value]"/> Michael Kay
|
|