This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Yet more confusion over strings and objects in Lisp.


/ Gre7g Luterman <gre7g@wolfhome.com> was heard to say:
| (if (string=? (nav-context elemnode) "")
|
| part.  (nav-context elemnode) returns an object, not a string.  So 

If you're trying to test whether or not nav-context generates text, use

  (if (nav-context?)
     ...

(nav-context ...) returns a sosofo and those are by definition opaque.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com>      | The sudden disappointment of hope
http://www.oasis-open.org/docbook/ | leaves a scar which the ultimate
Chair, DocBook Technical Committee | fulfillment of that hope never
                                   | entirely removes.--Thomas Hardy


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