Subject: RE: Defining an attribute only if not empty From: Kay Michael <Michael.Kay@xxxxxxx> Date: Tue, 9 May 2000 09:17:27 +0100 |
> Now my question is, how can I detect whether an attribute > doesnt' have a value (like, say, @id is empty)? To test whether attribute id exists: <xsl:if test="@id"> To test whether attribute id exists and is not zero-length: <xsl:if test="string(@id)"> Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Defining an attribute only if n, Wendell Piez | Thread | Mikes Doorstop, Dave Pawson |
RE: attributes of a parent node, Kay Michael | Date | Re: XLST Processors Performace, Sebastian Rahtz |
Month |