Subject: [xsl] how to delete an attribute after using it as a test From: "Noel Golding" <noel@xxxxxxxxxxxxxxx> Date: Sun, 17 Nov 2002 11:12:40 -0500 |
<!-- ================== --> <!-- xml snip --> <!-- ================== --> <form_field label="First Name" hidden="true" name="fname" size="35" maxlength="35" /> <!-- ================== --> <!-- xsl snip --> <!-- ================== --> <xsl:template match="form_field"> <xsl:if test="@hidden = 'true'"> <xsl:element name="input"> <!-- ****************************************** ****************************************** ** HERE I WOULD LIKE TO COPY ALL ** ATTRIBUTES EXCEPT @hidden and @label ****************************************** ****************************************** --> <xsl:copy-of select="@*"/> <xsl:attribute name="type">hidden</xsl:attribute> </xsl:element> </xsl:if> </xsl:template> <!-- ================== --> <!-- desired output --> <!-- ================== --> <input name="fname" size="35" maxlength="35" /> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] not(not() and not()), Yates, Danny (ANTS) | Thread | RE: [xsl] how to delete an attribut, Noel Golding |
Re: [xsl] sequential grouping quest, Paul | Date | RE: [xsl] how to delete an attribut, Noel Golding |
Month |