Subject: RE: default element construction rule From: "Reynolds, Gregg" <greynolds@xxxxxxxxxxxxxx> Date: Mon, 16 Mar 1998 14:04:35 -0600 |
I don't recall the exact element structure of HTML off the top of my head, but it sounds like you may need to add specific element-construction-rules for each element type H2's ancestry up to and including the root element. For each try (process-children); all elements except H2 (and its ancestors, of course) will fire the default-element-construction rule. I think. > -----Original Message----- > From: stephenng@xxxxxxxxxxxx [SMTP:stephenng@xxxxxxxxxxxx] > Sent: Monday, March 16, 1998 8:46 AM > To: dssslist@xxxxxxxxxxxxxxxx > Subject: default element construction rule > > I'm feeding Jade some HTML, and would like to it to emit stuff only > for elements I'm interested in. For example, I'd like it to only > print out all <H1> text. Unfortunately, by default, it spits > something out for every character in the HTML document. One way to > get what I want would be to create an element construction rule for > all the elements other than the ones I want, and have them generate > (empty-sosofo). But that seems like a lot of work. > > I've tried changing the default element construction rule, but > > (default (empty-sosofo)) > > winds up killing all my output, even if I have a more specific > construction rule for H2. > > Is there a way to do this using the default element construction > rule? > > Thanks, > > Steve > > > 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: default element construction ru, Chris Maden | Thread | Re: default element construction ru, stephenng |
Re: default element construction ru, Chris Maden | Date | Re: default element construction ru, stephenng |
Month |