[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: how to delete an attribute after using it as a tes

Subject: RE: how to delete an attribute after using it as a test
From: "Noel Golding" <noel@xxxxxxxxxxxxxxx>
Date: Sun, 17 Nov 2002 12:46:18 -0500
remove hidden attribute
sorry, If found the answer here.
<!-- ANSWER -->

http://www.biglist.com/lists/xsl-list/archives/200211/msg00618.html

<xsl:copy-of select="@*[not(name()='hidden' or name()='label')]"/>



Thanks
Noel Golding

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Noel Golding
Sent: Sunday, November 17, 2002 11:13 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  how to delete an attribute after using it as a test


<!-- ================== -->
<!-- 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

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.