RE: default element construction rule

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
  • default element construction rule
    • stephenng - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id OAA14790Mon, 16 Mar 1998 14:46:41 -0500 (EST)
      • Chris Maden - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id PAA15608Mon, 16 Mar 1998 15:01:04 -0500 (EST)
      • <Possible follow-ups>
      • Reynolds, Gregg - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id PAA15897Mon, 16 Mar 1998 15:06:16 -0500 (EST) <=
      • stephenng - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id PAA16310Mon, 16 Mar 1998 15:23:46 -0500 (EST)
        • Paul Prescod - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id SAA19639Mon, 16 Mar 1998 18:43:29 -0500 (EST)
          • Gregg Reynolds - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id XAA23031Mon, 16 Mar 1998 23:14:03 -0500 (EST)
          • Chris Maden - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id KAA07486Tue, 17 Mar 1998 10:58:20 -0500 (EST)