Subject: counting items From: mok <cmok@xxxxxxxx> Date: Thu, 21 Jan 1999 15:32:36 +0000 |
I have a problem with counting items. In the example below, I would like to compose with the following rules 1. (element SUBSTEP ITEM) no prefix 2. (element STEP ITEM) prefixed with (n + 1) where n is the num-of-times ITEM has occurred already occured as direct child of STEP would anyone be able to advise me on this? SGML: ----- <STEP> <ITEM>Item One</ITEM> <ITEM>Item Two</ITEM> <SUBSTEP> <ITEM>Subitem</ITEM> <ITEM>Subitem</ITEM> </SUBSTEP> </STEP> <CONTAINER> <STEP> <ITEM>Item Three</ITEM> <ITEM>Item Four</ITEM> <SUBSTEP> <ITEM>Subitem</ITEM> <ITEM>Subitem</ITEM> </SUBSTEP> </STEP> </CONTAINER> SHOULD BE COMPOSED AS SUCH -------------------------- 1. Item One 2. Item Two Subitem Subitem 3. Item Three 4. Item Four Subitem Subitem DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
How do I put a display area at the , Frank A. Christoph | Thread | dsssl, mode and with-mode, Jon Haugsand |
How do I put a display area at the , Frank A. Christoph | Date | dsssl, mode and with-mode, Jon Haugsand |
Month |