This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: how can check whether an attribute exists or not?


David Carlisle a écrit :

> > <xsl:when test="@href=''">
>
> That tests if the string value is empty, which is true if there isn't an
> attribute or of it s explictly empty.
>

you mean that if i have:
<ok>my_string</ok> in my XML file

i could test <xsl:when test="@ok=''">
to know if my_string is empty or not ?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]