|
Subject: New problem From: "Didier PH Martin" <martind@xxxxxxxxxxxxx> Date: Wed, 27 Jan 1999 09:47:43 -0500 |
Hi
I learn from Ken the process-children trick, I made a new script that works
except that the item "description" do not display and I don't know why????
Here is the script:
(the document is below the script)
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN">
(declare-flow-object-class element "UNREGISTERED::James Clark//Flow Object
Class::element")
(root
(make element
gi: "HTML"
(process-children)))
(element (breakfast-menu)
(make element
gi: "BODY"
attributes: '(("STYLE" "font-family:helvetica,sans
sherif;font-size:12pt;background-color:#EEEEEE"))
(process-children)))
(element food
(make display-group
(literal "<DIV
STYLE=\"background-color:teal;color:white;padding:4px\">")
(process-matching-children "name")
(literal " - ")
(process-matching-children "price")
(literal "</DIV>")
(process-matching-children "description")))
(element name
(make element
gi: "SPAN"
attributes: '(("STYLE" "font-weight:bold;color:white"))
(process-children)))
(element (price)
(make sequence
(process-children)))
(element (description)
(make element
gi: "DIV"
attributes: '(("STYLE"
"margin-left:20px;margin-bottom:1em;font-size:10pt;"))
(process-children)))
(element (calories)
(empty-sosofo))
Document:
<?xml version="1.0"?>
<?xml-stylesheet type="text/dsssl" href="simple-html.dsl" format="sgml"?>
<breakfast-menu>
<food>
<name>Belgian Waffles</name>
<price>$5.95</price>
<description>two of our famous Belgian waffles with plenty of real maple
syrup</description>
<calories>650</calories>
</food>
<food>
<name>Strawberry Belgian Waffles</name>
<price>$7.95</price>
<description>light Belgian waffles covered with strawberries and whipped
cream</description>
<calories>900</calories>
</food>
</breakfast-menu>
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Help about formatting-instruction, Alexander Taranov | Thread | New problem, Alexander Taranov |
| RE: Help about formatting-instructi, Didier PH Martin | Date | New problem, Alexander Taranov |
| Month |