Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Test if exists [Thread Next] Re: Test if existsTo: NULL Date: 11/21/2008 4:18:00 PM All right it's okay for me now Thanks a lot Le 20/11/08 01:19, dans #3VDc#sSJHA.5408@T..., « Dimitre Novatchev » <dnovatchev@c...> a écrit : > Use: > > boolean($yourLongExpresion = 'True') > > Cheers, > Dimitre Novatchev > > "tshad" <tfs@d...> wrote in message > news:OmCmWYqSJHA.4452@T...... >> I have a statement: >> >> <primary> >> <xsl:value-of select="FORMS/FORM/FIELDS/*[name() = >> 'OTHERFILENUMBER' and ../../@MAJOR = 'True']/../../@MAJOR"/> >> </primary> >> >> This will normally set the field to be "True" or "False" which is the >> attribute of @MAJOR. >> >> But I found an instance where the field OTHERFILENUMBER doesn't exist and >> it puts blank there. >> >> How would I change this to say to put a "False" if either the result of >> the select is "blank", OTHERFILENUMBER doesn't exist or ../../@MAJOR >> doesn't = 'False'? >> >> Thanks, >> >> Tom >> > > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
