Subject: Re: Labels and content-map From: James Clark <jjc@xxxxxxxxxx> Date: Fri, 23 May 1997 09:54:04 +0700 |
With my current sources, this does output just "This is an A". I fixed a bug in sosofo-discard-labeled a while ago; I suspect that's the problem. At 15:18 22/05/97 -0400, Paul Prescod wrote: >I want to move some labeled flow objects before unlabeled ones in the >output of a document. The only way I could figure out how to do that is >to make two copies of the flow object tree, add labels to the elements >without, and then discard them based on their labels. There may be a >more elegant way, and I would like to know it, if there is, but I would >also like to know why this way doesn't work. In the example below I will >try to attack half of the problem, outputting only the flow objects >labeled 'a . But Jade doesn't output them. > ><!DOCTYPE FOO [ > <!ELEMENT FOO O O (A,B,C)> > <!ELEMENT A - O EMPTY> > <!ELEMENT B - O EMPTY> > <!ELEMENT C - O EMPTY> >]> ><A> ><B> ><C> > >--- ><!doctype style-sheet PUBLIC "-//James Clark//DTD DSSSL Style >Sheet//EN"> ><!-- test.dsl --> > >(element a (make sequence label: 'a (literal "This is an A"))) > >(element b (literal "This is a B")) ;; no label > >(element c (literal "This is a C")) ;; no label > >(element foo > (let* ((flow-children (process-children)) > (a-and-non-a-labels (sosofo-label flow-children 'non-a)) > (only-a-elements (sosofo-discard-labeled > a-and-non-a-labels 'non-a))) > > (make simple-page-sequence > (make paragraph content-map: '((a #f)) > only-a-elements)))) > >I thought that that code would add the label 'non-a to all flow objects >*except* the one already labelled 'a and would then discard the non-a >flow objects. Instead I get an empty document. Am I doing something >wrong or is this a Jade bug? > > Paul Prescod DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Labels and content-map, Paul Prescod | Thread | [Fwd:] XS discussion begins, Jon Bosak |
Enhancements for html32hc-1.dcl, Daniel M. German | Date | Re: XS: Guidelines for the discuss, lee |
Month |