Return-Path: Delivered-To: apmail-xml-xalan-j-users-archive@xml.apache.org Received: (qmail 96362 invoked by uid 500); 16 May 2003 20:14:44 -0000 Mailing-List: contact xalan-j-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list xalan-j-users@xml.apache.org Received: (qmail 96308 invoked from network); 16 May 2003 20:14:43 -0000 Received: from sulu.mmm.com (HELO torres4.mmm.com) (192.28.4.21) by daedalus.apache.org with SMTP; 16 May 2003 20:14:43 -0000 Received: from hi-zion.mmm.com ([143.122.30.116]) by torres4.mmm.com (8.10.2/8.8.7) with ESMTP id h4GKEli11660 for ; Fri, 16 May 2003 15:14:47 -0500 (CDT) Subject: How to check for a null RTF? To: xalan-j-users@xml.apache.org X-Mailer: Lotus Notes Release 5.0.9a January 7, 2002 Message-ID: From: kroberts@mmm.com Date: Fri, 16 May 2003 14:14:47 -0600 X-MIMETrack: Serialize by Router on HI-Zion/HI-HealthInfo/3M/US(Release 5.0.9a |January 7, 2002) at 05/16/2003 02:14:47 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I'm having a problem with some old xalan-1 code. A value is conditionally assigned to the DefaultFilter parameter. $OSHProfile/filter/default does not exist in the stylesheet parameter $OSHProfile. The not($DefaultFilter) test always evaluates to false. This is because an RTF is never really null, as I understand it. It isn't clear to me how to rewrite this logic so it will work in xalan 2.5.0. I thought about using a boolean; but I have to be able to test $OSHProfile/filter/default for a null value to assign the boolean variable. Is there a way to reliably test an RTF for null? Is there some other workaround that I am not seeing? Thanks... Medications Meds medications.xsl meds.gif ..... true Inpt.