Subject: Re: Nodes and counting From: Vivek Agrawala <vivek@xxxxxxxxxxxxxxx> Date: Tue, 30 Sep 1997 09:55:23 -0400 |
> (element child1 ( > make paragraph > use: para-style > space-after: (if (> (node-list-length (parent (current-node))) 2) 0pt > 2em) > (process-children))) Maybe you want: (if (> (node-list-length (children (parent (current-node)))) 2) ... > I always get a false from the 'if' statement. Of course. The parent procedure returns a singleton node-list. > <question> Am I right in thinking that node-list-length (when all three > children are there in > a document instance) will be 3? </question> Yes. -- Vivek Agrawala, Ph.D. Siemens Corporate Research, Inc. email: vivek@xxxxxxxxxxxxxxx DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Nodes and counting, Pawson, David | Thread | Re: Nodes and counting, Paul Prescod |
Nodes and counting, Pawson, David | Date | Re: DSSSL extensions for XSL, Paul Prescod |
Month |