Subject: Re: [xsl] DOCTYPE causes appearance of unwanted attributes From: Eliot Kimber <ekimber@xxxxxxxxxxxxxxxxxxx> Date: Tue, 06 Apr 2004 13:11:06 -0500 |
2) Can I suppress it? :-)
You cannot distinguish between a defaulted attribute and a specified attribute (unspecified implied attributes are not included in the XPath data model).
<xsl:template match="@*"> <xsl:choose> <xsl:when test="self::attname_1 and string(.) = 'default_value'"/> <xsl:when test="self::attname_2 and string(.) = 'annother_default_value'"/> <xsl:otherwise> <xsl:copy-of select="."/> </xsl:otherwise> </xsl:choose> </xsl:template>
E. -- W. Eliot Kimber Professional Services Innodata Isogen 9030 Research Blvd, #410 Austin, TX 78758 (512) 372-8122
eliot@xxxxxxxxxxxxxxxxxxx www.innodata-isogen.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] DOCTYPE causes appearance, G. Ken Holman | Thread | Re: [xsl] DOCTYPE causes appearance, Eliot Kimber |
Re: [xsl] Importing multiple XML fi, G. Ken Holman | Date | Re: [xsl] DOCTYPE causes appearance, Eliot Kimber |
Month |