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/20/2008 2:33:00 PM "Dimitre Novatchev" <dnovatchev@c...> wrote in message news:%233VDc%23sSJHA.5408@T...... > Use: > > boolean($yourLongExpresion = 'True') Thanks, Tom > > 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 | |||
|
