|
Subject: process-node-list, select-element, etc..... From: "Pursel, Frank" <frank_pursel@xxxxxxxxx> Date: Mon, 18 May 1998 16:40:00 -0400 |
I am using Jade with Linux and trying to extract all the 'notes' from this
document.
The notes are presumably so important that they must be collected at the
beginning of the printout as special notificaiton. The remainder of the
document should follow and
print out normally. ( I intentionally left out a 'process-children' line
for simplicity here.)
This dsssl file doesn't seem to do the job. I suspect I have a gross
conceptual error about
how node-list processing is supposed to work, but I need this plank picked
from my eye. Can
anyone give me some error correction here?
<!doctype test [
<!element test - - (act+)>
<!element act - - (note | step)+>
<!element step - - (#PCDATA)>
<!element note - - (#PCDATA)>
]>
<test>
<act>
<step>First step</step>
<note>1 important note</note>
</act>
<act>
<step>First step again</step>
<note>note 2</note>
<step>act 2 step 2</step>
</act>
<act>
<note>note 3</note>
</act>
</test>
-------Here is the corresponding dsssl file--------
<!doctype style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN">
(root (process-node-list
(select-elements (descendants (current-node)) 'NOTE)))
(element test (make simple-page-sequence))
(element act (make sequence (make rule) (process-children)))
(element step (make paragraph))
(element note (make paragraph))
--------End of files-------------------------
My eternal, for me at least, gratitude to the brave responders.
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Possible to use just table part, Boris Goldowsky | Thread | RE: process-node-list, select-eleme, Reynolds, Gregg |
| Possible to use just table part of , Glenn R. Kronschnabl | Date | re: Possible to use just table part, Boris Goldowsky |
| Month |