Subject: RE: (data..), (attribute-string...), (node-property...) From: "John Sidlo" <jsidlo@xxxxxxxxxxxxxxxxxx> Date: Wed, 19 Aug 1998 15:55:27 -0400 |
Sean, thank you for your repl(ies). I believe your snippet illustrates how to obtain "bar", but what I was hoping for was how to obtain "foomore foo" from the <title>. Of course, given that I can get "bar" I could always search for substring in the "foobarmore foo", but I was hoping for a more direct way to accomplish it. There must be a more straightforward way to get this. John Sidlo Modern Age Books > -----Original Message----- > From: owner-dssslist@xxxxxxxxxxxxxxxx > [mailto:owner-dssslist@xxxxxxxxxxxxxxxx]On Behalf Of > shennessy@xxxxxxxxxx > Sent: Wednesday, August 19, 1998 12:41 PM > To: dssslist@xxxxxxxxxxxxxxxx > Subject: Re: (data..), (attribute-string...), (node-property...) > > > > 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 > DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: (data..), (attribute-string...), shennessy | Thread | Re: (data..), (attribute-string...), Brandon Ibach |
Re: Table Column Widths, Harvey Bingham | Date | Re: Q: Include EPS graphics in TeX , David Carlisle |
Month |