Subject: Re: (data..), (attribute-string...), (node-property...) From: shennessy@xxxxxxxxxx Date: Wed, 19 Aug 98 08:41:20 -0800 |
John Sidlo wrote: >In Jade I am trying to extract the data from a nodelist representing: ><title>foo<footnote>bar</footnote>more foo</title> >The dsssl expression (data nl) returns (correctly) "foobarmore foo"; I want >to extract "foomore foo". I've tried (attribute-string "data" nl) and >(node-property 'data nl), but the property "data" doesn't seem to be >defined. >Can someone suggest a way to remove the children from <title>, or otherwise >extract this? Try This.. (element (TITLE FOO) ( let* ( ( theTxt (data (current-node ))) (footnl ($sel-chldrn$ current-node "footnote")) ;; use (process-node-list footnl) );eoletgroup (make sequence (literal theTxt) );eomseq );eolet ) (define ($sel-chldrn$ %this-node% %this-gi%) (select-elements (children (%this-node%)) (normalize %this-gi%)) ) Regards, W. Sean Hennessy DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: (data..), (attribute-string...), Toby Speight | Thread | RE: (data..), (attribute-string...), John Sidlo |
AW: jade (unofficial) and jadetex u, Dr. Markus Hönicka | Date | Re: Table Column Widths, Kendall Clark |
Month |