Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Test if exists >Thread Next - Re: Test if exists Re: Test if existsTo: NULL Date: 11/19/2008 9:20:00 PM 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 | |||
|
